| | |
right mouse click with python
![]() |
You need to make this a GUI program ...
python Syntax (Toggle Plain Text)
# bind mouse clicks using the Tkinter GUI toolkit # (usually included in your Python installation) import Tkinter as tk def change_color(event): btn1.config(fg='red') root = tk.Tk() btn1 = tk.Button(root, text='Click me with the right mouse button ...') btn1.pack() btn1.bind('<Button-3>', change_color) # bind right mouse click root.mainloop()
May 'the Google' be with you!
![]() |
Similar Threads
- Starting Python (Python)
- Python Join points to a square (Python)
- Need help with the 5 mouse click house program (Python)
- Python GUI (Python)
- Tk Button Click Response (Python)
- Listbox in Tkinter python (Python)
- Re: Starting Python (Python)
- Python Error-- cannot find file (Python)
Other Threads in the Python Forum
- Previous Thread: module for recursive files?
- Next Thread: Python Modules reference
| Thread Tools | Search this Thread |
alarm ansi assignment avogadro backend beginner binary bluetooth character cmd code customdialog cx-freeze data decimals dictionary directory dynamic error examples exe file float format function generator gnu graphics gui halp heads homework http ideas import input itunes java leftmouse line linux list lists loop maze module mouse number numbers output parsing path pointer port prime programming progressbar projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh statistics string strings sudokusolver sum terminal text thread threading time tlapse tricks tuple tutorial ubuntu unicode urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib






