python tkinter canvas feature, trying to use StringVar-s to draw arcs -


Tkinter is trying to make an arc with the canvas widget, but whatever I do, I can not make the work in the make_arc function working.

I tried to specify the values ​​for the normal python variable in the main function body, but it does not do any work. This is my complete code.

Tector Route = TC () amexetter = Stringwara () DEF Aravutpalg (* AGR) from tanker imports: Try: CeTtulake. Set (X + Y + Z) emasektor.set (float ( (X / (x + y + z)) * 360) isasektor = 90 lastesektor = (z / (x + y + z)) * Exclude 360 ​​ValueError: ** raam.create_arc (20, 20, 180, 180, Start = 0, to extent = emasektor.get (), fill = 'red') **

There is at least an example which works until it does not work until it is ready for a while. Please let us know what is the problem.

import as tk root = tk.Tk.kk () can = tk.Canvas (root) can.pack ( ) Arc = can.create_arc () 100,100,200,300, fill = 'red') root.mainloop ()

Or start with your code and cut or comment until it 'works' ' does not. Also, when you post a question, it's more specific than 'does not work'. If there is a traceback, post it.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -