- 博客(5)
- 收藏
- 关注
翻译 Tkinter中entry的使用示例
<br />#!/usr/bin/python #Filename: button.py # -*- coding: utf-8 -*-from Tkinter import * class Application(Frame): def textmove(self): self.entryVar.set(self.entry1.get()) def createWidgets(self): sel
2011-03-31 15:00:00 1777
翻译 Tkinter中的checkbutton使用示例
<br />#!/usr/bin/python #Filename: button.py # -*- coding: utf-8 -*-from Tkinter import * class Application(Frame): def checkon(self): self.checkbutton2.toggle() print "on" def checkoff(self):
2011-03-31 11:32:00 779
原创 Tkinter中对于canvas的支持
<br />Canvas上能放置图片,文本,空间,或者框体,包括如下方法:<br /> create_arc: 绘制圆弧<br /> create_bitmap: 绘制位图<br /> create_image: 绘制图片<br /> create_line: 绘制线条<br /> create_oval:绘制椭圆<br /> create_polygon:绘制多边形<br /> create_text: 绘制文本<br /> create_window:放置
2011-03-31 11:10:00 637
翻译 Tkinter中的button使用
按钮控件的创建: w = Button(parent, option=value, ...) 可选项: activebackground: activeforeground: anchor: bd or borderwidth: bg or background: bitmap: command: cursor: default: disabledforeground: fg or foreground: font: he
2011-03-30 15:26:00 2441 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人