Mouse Double click,mousedoubleclick,from Tkinter
Mouse Double click,mousedoubleclick,from Tkinter
from Tkinter import *def showPosEvent(event): print 'Widget=%s X=%s Y=%s' % (event.widget, event.x, event.y)def onDoubleLeftClick(event): print 'Got double left mouse click', showPosEvent(event) tkroot.quit()tkroot = Tk()labelfont = ('courier', 20, 'bold') widget = Label(tkroot, text='Hello bind world')widget.config(bg='red', font=labelfont)widget.config(height=5, width=20) widget.pack(expand=YES, fill=BOTH)widget.bind('<Double-1>', onDoubleLeftClick)widget.focus() tkroot.title('Click Me')tkroot.mainloop()
- Mouse action: left click,mouseclick,from Tkinter
- Draw a Oval with fill,drawoval,from Tkinter
- List: The Difference Between Extend and Append,extenda
- How to Create and Assign Lists,assignlists,aList = [12
- List: less,equal,greater: tuple of results,greatertupl
- Find Prime numbers using list,primenumbers,#First buil
热门文章:
相关内容
- Mouse action: left click,mouseclick,from Tkinter
- Draw a Oval with fill,drawoval,from Tkinter
- List: The Difference Between Extend and Append,extendappend,li = ['
- How to Create and Assign Lists,assignlists,aList = [123
- List: less,equal,greater: tuple of results,greatertuple,L1 = [1, ('
- Find Prime numbers using list,primenumbers,#First build
- List count(x),listcount,# Return the
- Introducing List Filtering,,li = ['a', '
- List for iteration,listforiteration,for x in [1,
- For Statements,forstatements,a = ['cat',
评论关闭