随笔分类 -  tkinter

摘要:``` 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 阅读(597) 评论(0) 推荐(0)
摘要:``` self.text.bind("", self.selectText) self.text.bind("", self.selectText) ``` ``` def selectText(self, event): self.text.tag_add('sel', '1.0', 'end') return 'break' ``` 阅读全文
posted @ 2017-03-22 10:06 idlewith 阅读(421) 评论(0) 推荐(1)
摘要:``` def center_window(self, cont, width, height): screenwidth = cont.winfo_screenwidth() screenheight = cont.winfo_screenheight() size = "%sx%s+%s+%s" % ( width... 阅读全文
posted @ 2017-03-22 10:01 idlewith 阅读(271) 评论(0) 推荐(0)
摘要:``` from tkinter import * from tkinter.ttk import * import time import threading import requests from bs4 import BeautifulSoup url3 = 'http://stackoverflow.com/questions/31241112/blocking-tkinter-int... 阅读全文
posted @ 2017-03-16 23:28 idlewith 阅读(455) 评论(0) 推荐(0)
摘要:``` from tkinter import * from tkinter.ttk import * import time import threading class Interface: def __init__(self, master): self.master = master self.browse_button= Button (mast... 阅读全文
posted @ 2017-03-16 22:37 idlewith 阅读(367) 评论(0) 推荐(0)
摘要:``` # 8 organize your code import matplotlib matplotlib.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import Figure impor... 阅读全文
posted @ 2017-03-15 01:49 idlewith 阅读(514) 评论(0) 推荐(0)
摘要:``` r.withdraw() ``` ``` r.deiconify() ``` 阅读全文
posted @ 2017-03-13 23:31 idlewith 阅读(139) 评论(0) 推荐(0)
摘要:tkinter 支持的图片格式:GIF PPM PGM 当图片是这3种格式的时候, 在c:\python27\scripts目录下的name.spec 加上下面这一行就能成功加入图片 a.datas += [('t1.gif','C:\\Users\\ \\PycharmProjects\\unti 阅读全文
posted @ 2017-01-21 15:55 idlewith 阅读(376) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-01-15 21:21 idlewith 阅读(3) 评论(0) 推荐(0)