上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页
摘要: ``` def center(self): screen = QtGui.QDesktopWidget().screenGeometry() size = self.geometry() self.move((screen.width()-size.width())/2, (screen.height()-size.height())/2) `... 阅读全文
posted @ 2017-03-30 14:38 idlewith 阅读(245) 评论(0) 推荐(0) 编辑
摘要: ``` def closeEvent(self, QCloseEvent): reply = QtGui.QMessageBox.question(self, 'Message', 'Are you sure to quit?', ... 阅读全文
posted @ 2017-03-30 14:35 idlewith 阅读(571) 评论(0) 推荐(0) 编辑
摘要: ``` $("input[name='txNotion']").val('ok') ``` 阅读全文
posted @ 2017-03-29 13:42 idlewith 阅读(121) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-03-28 15:34 idlewith 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-03-28 15:33 idlewith 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ``` def get_pid(pname): process = psutil.process_iter() for pro in process: str_pro = str(pro) pat = re.compile(pname) if pat.search(str_pro): pid = str_pro... 阅读全文
posted @ 2017-03-28 15:30 idlewith 阅读(157) 评论(0) 推荐(0) 编辑
摘要: ``` def send_to_clipboard(clip_type, data): win32clipboard.OpenClipboard() win32clipboard.EmptyClipboard() win32clipboard.SetClipboardData(clip_type, data) win32clipboard.CloseClipboar... 阅读全文
posted @ 2017-03-28 09:50 idlewith 阅读(276) 评论(0) 推荐(0) 编辑
摘要: ``` coding:utf 8 PyMsgBox A simple, cross platform, pure Python module for JavaScript like message boxes. Al Sweigart al@inventwithpython.com Modified 阅读全文
posted @ 2017-03-27 14:53 idlewith 阅读(573) 评论(0) 推荐(0) 编辑
摘要: ``` import os import fnmatch def get_c_path(): for drive in ('C:\\', 'D:\\'): for dirpath, dirnames, filenames in os.walk(drive): for name in filenames: if fnm... 阅读全文
posted @ 2017-03-27 13:28 idlewith 阅读(101) 评论(0) 推荐(0) 编辑
摘要: ``` On Unix: Access with On Window: Access with from gevent.server import StreamServer def handle(socket, address): socket.send("Hello from a telnet!\ 阅读全文
posted @ 2017-03-26 15:08 idlewith 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页