import tkinter as tk window = tk.Tk() # 窗口obj对象 window.title('my TK') # 窗口名字 window.geometry('200x100') # 窗口宽度和高度 # Label对象传入相应参数text:文本内容; bg:背景; fon ...
分类:
编程语言 时间:
2017-12-16 13:14:14
阅读次数:
373
import tkinter import random import tkinter.messagebox class choujiang: def __init__(self): self.root=tkinter.Tk() self.root.minsize(400,400) self.roo... ...
分类:
编程语言 时间:
2017-12-16 00:37:09
阅读次数:
208
Python 提供了多个图形开发界面的库,几个常用 Python GUI 库如下: Tkinter: Tkinter 模块(Tk 接口)是 Python 的标准 Tk GUI 工具包的接口 .Tk 和 Tkinter 可以在大多数的 Unix 平台下使用,同样可以应用在 Windows 和 Maci ...
分类:
编程语言 时间:
2017-12-15 23:42:51
阅读次数:
533
#计算器 import tkinter import math import tkinter.messagebox class jsq: #页面布局方法 def __init__(self): self.root=tkinter.Tk() self.root.minsize(330,440) #禁止... ...
分类:
其他好文 时间:
2017-12-10 18:55:36
阅读次数:
247
#压缩软件 import tkinter import tkinter.messagebox import zipfile import tkinter.filedialog import os class zip: files=() def __init__(self): self.root=tk... ...
分类:
其他好文 时间:
2017-12-10 18:54:18
阅读次数:
241
import tkinter import tkinter.filedialog import zipfile import os import tkinter.messagebox #压缩软件 class zipc: #界面布局方法 def __init__(self): #创建主界面 并保存到成 ...
分类:
其他好文 时间:
2017-12-01 20:43:05
阅读次数:
132
import tkinter import math class objc: # 界面布局方法 def __init__(self): # 创建主界面 并且保存到成员属性中 self.root = tkinter.Tk() self.root.minsize(300, 400) self.root. ...
分类:
其他好文 时间:
2017-12-01 20:39:10
阅读次数:
190
import tkinter import math class Deom: operation_sign = False sign1 = False sign2 = False list1 = [] list2 = [] def __init__(self): self.root = tkinte... ...
分类:
编程语言 时间:
2017-11-28 01:44:17
阅读次数:
195
import tkinterimport mathimport tkinter.messagebox class jsq: #界面布局方法 def __init__(self): #创建界面 self.root = tkinter.Tk() self.root.minsize(280,420) se ...
分类:
其他好文 时间:
2017-11-28 01:35:08
阅读次数:
152
# 压缩文件 import tkinterimport tkinter.filedialogimport tkinter.messageboximport zipfileimport os class ZipDemo: def __init__(self): self.root = tkinter. ...
分类:
其他好文 时间:
2017-11-28 01:26:14
阅读次数:
151