tkinter
What would be the most pythonic way to make an attribute that can be used in a lambda?
More specifically, I want to be able to support lambda: <some_or_other_setter>, but I want to keep the code clear and to a concise. I have to validate the value, so I need a setter of some kind.[详细]
2023-03-22 12:51 分类:问答Python/Tkinter: How can I get the .bind() method to work with keyboard keys?
I\'m trying to learn Tkinter but I\'m running into a problem. I\'d like it so once the user hits their Enter key it will copy what is in an Entry field. I was planning on using the .bind() method but[详细]
2023-03-22 01:13 分类:问答Attempting to add a simple image into a label
Using a Tkinter tutorial site -as supplied by school-, I attempted to add a simple Paint-drawn gif into a La开发者_如何学运维bel on my Python program.[详细]
2023-03-21 15:17 分类:问答Checkbuttons with Multiple Tkinter Windows
Specs: Python2.7.1 Tkinter (Tk version 8.5) Windows7 IDLE 2.7.1 I\'m coding a program that \'spawns\' two windows, withdraws both, destroys one and then deiconifies the other (which then enters a mai[详细]
2023-03-21 06:43 分类:问答How do I make a button in my tk UI that makes the program do a whole ton of stuff when it is pressed not freeze the window?
I\'m just getting started with Tk and using it in python.I set up a button that does a ton (like two minutes worth) of stuff behind the scenes when you press it.I also set up a status text to show wha[详细]
2023-03-21 03:17 分类:问答Access to the coordinates of a 3D graphic inserted in a Tkinter.canvas
I am very new in matplotlib and consequently I encounter some problems.. I try to insert a 3D graphic in a Tkinter canvas and I would like to get, (on click), the position of the mouse. The problem 开[详细]
2023-03-21 02:35 分类:问答can't set background color ttk python os x using styles
With this code fragment, I would expect the label to have a background color red. def createWidgets(self):[详细]
2023-03-21 01:11 分类:问答board-drawing code to move an oval
I am working on a python checkers game for college. I have the board drawn, using tk, but I can\'t seem to implement a movement function for the pieces. If anyone see any errors in my code, or can off[详细]
2023-03-21 00:07 分类:问答Calling a Python Tkinter wait_window inside a method and then resuming the method
I have a main window which creates a setup window (defined as a top level window) as a wait_window via this line of code:[详细]
2023-03-20 06:27 分类:问答disable tkinter keyboard shortcut
I have an event handler that I bound to Ctrl+H, which Tkinter also recognizes as backspace. Though I read that with a return \'break\' at the end of the handler I should stop the propagation of the sh[详细]
2023-03-20 03:13 分类:问答