+ 9

Why this code is not working in IDE & Pydroid??

import tkinter top = tkinter.Tk() C = tkinter.Canvas(top, bg = 'red', height = 25, width = 30) coord = 1, 5, 24, 21 arc = C.create_arc(coord, start = 0, extent = 150, fill = 'blue') top.mainloop()

26th Jun 2021, 10:37 AM
Anas Dharar
Anas Dharar - avatar
4 Respuestas
+ 8
Who will pack the "C" my friend Just add C.pack() to your code
26th Jun 2021, 4:20 PM
Ayush Kumar
Ayush Kumar - avatar
+ 7
Hmm let's ask the expert 丹ⓨㄩک廾 sir 🎤🎤apki ispe kya rai hai mere hisab se pydroid se jyada python shell acha hai but the problem is u don't have computer.. so you need to ask the expert here's the mic 🎤@Ayush bhaia
26th Jun 2021, 4:14 PM
Queen👽
Queen👽 - avatar
+ 6
I went through an article and according it you are missing C.pack() after arc line.
26th Jun 2021, 10:52 AM
Abhay
Abhay - avatar
+ 3
Abhay thanks
26th Jun 2021, 10:53 AM
Anas Dharar
Anas Dharar - avatar