随笔分类 - tkinter
摘要:``` coding:utf 8 PyMsgBox A simple, cross platform, pure Python module for JavaScript like message boxes. Al Sweigart al@inventwithpython.com Modified
阅读全文
摘要:``` self.text.bind("", self.selectText) self.text.bind("", self.selectText) ``` ``` def selectText(self, event): self.text.tag_add('sel', '1.0', 'end') return 'break' ```
阅读全文
摘要:``` def center_window(self, cont, width, height): screenwidth = cont.winfo_screenwidth() screenheight = cont.winfo_screenheight() size = "%sx%s+%s+%s" % ( width...
阅读全文
摘要:```
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...
阅读全文
摘要:```
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...
阅读全文
摘要:```
# 8 organize your code
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.figure import Figure
impor...
阅读全文
摘要:```
r.withdraw()
``` ```
r.deiconify()
```
阅读全文
摘要:tkinter 支持的图片格式:GIF PPM PGM 当图片是这3种格式的时候, 在c:\python27\scripts目录下的name.spec 加上下面这一行就能成功加入图片 a.datas += [('t1.gif','C:\\Users\\ \\PycharmProjects\\unti
阅读全文

浙公网安备 33010602011771号