`
amu_lucifer
  • 浏览: 5289 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
from Tkinter import * root = Tk() v = IntVar() v.set(0) def click(): print "1" class MyRadio(Radiobutton): def __init__(self,root,variable,value): self.variable = variable self.value = value Radiobutton.__init__(self,root,variable=variable ...
import Tkinter as tk class MyWindow(object): def __init__(self): self.root = tk.Tk() button=tk.Button(self.root, text='NEXT', command=self.OnNext) button.pack() def OnNext(self): win = MyWindow() self.root.destroy() ...
from Tkinter import * class App: frame = None def __init__(self,master): frame = Frame(master) frame.pack() self.button = Button(frame,text="Quit", fg="red", command = frame.quit) self.button.pack(side=LEFT) self.hi_there = Button(frame, ...
from __future__ import division from Tkinter import Tk, Entry, Button, Label, mainloop from tkFont import Font def pp(ev=None): foodl = '' try: foodl = eval( text.get()) except : pass if isinstance(foodl, (int,float,long)): pass else: foodl = 'Error. ...
Global site tag (gtag.js) - Google Analytics