python
M1011566442
C,C++,Delphi,C#,ASP.net
展开
-
python remote webdriver
1.how to config?The python script: from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities browser=webdriver.remote.webdriver.WebDriver\原创 2014-07-22 10:59:31 · 2981 阅读 · 0 评论 -
How to config firefox's preference when use webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary profile = webdriver.FirefoxProfile() browser = webdriver.Firefox(profile)转载 2014-07-22 11:10:02 · 1260 阅读 · 0 评论 -
Tkinter Entry only allows digit number
class MyApp(): def __init__(self): self.root = tk.Tk() # valid percent substitutions (from the Tk entry man page) # %d = Type of action (1=insert, 0=delete, -1 for others)原创 2014-07-24 17:53:48 · 1626 阅读 · 0 评论 -
Tkinter entry limit the length of input.
from Tkinter import * def callback1(e2): c = e2.get()[0:9] print "c=" , c e2.set(c) top=Tk() e2=StringVar() entry2=Entry(top,textvariable=e2) e2.trace("w", lambda name, index, mode, e2=原创 2014-07-24 18:59:36 · 1884 阅读 · 0 评论 -
linux yum卸载安装记录
1.卸载 rpm -qa|grep yum|xargs rpm -e --nodeps 2.下载yum包, wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz tar -zxvf yum-3.2.28.tar.gz cd yum-3.2.28 ./yummain.py install y转载 2016-09-09 16:37:35 · 2298 阅读 · 0 评论