| | |
issue with Tkinter canvas widget
![]() |
Hello everybody,
I've a somewhat odd issue displaying a .png image onto a Tkinter canvas.
The image is surrounded by a grey frame.
Here below an excerpt of the relevant code and by the way I'm running under windows xp.
The same thing happens with the menu of the gui, it stays grey whatever colour I set.
Any suggestion about this issue?
Thank you all
I've a somewhat odd issue displaying a .png image onto a Tkinter canvas.
The image is surrounded by a grey frame.
Here below an excerpt of the relevant code and by the way I'm running under windows xp.
The same thing happens with the menu of the gui, it stays grey whatever colour I set.
Any suggestion about this issue?
python Syntax (Toggle Plain Text)
self.frameCanvas = Frame(master, bg="white", bd=0, relief=FLAT) self.frameCanvas.grid(column=1, row=0, rowspan=2, sticky=NE, padx=10, pady=5) # self.logo = Canvas(self.frameCanvas, width=70, height=70, bg="white", bd=0) self.logo.create_image(36, 36, image=self.Logo_TCTK) self.logo.grid() self.logo.image = self.Logo_TCTK
Thank you all
I can indeed give you the full code of the app infrastructure which is the one creating the gui's aspect and common widgets. This part then call the various modules which I don't include here as I don't think they're useful to solve the problem.
Be warned that the code is rude and not at all smooth and clean
Thanks to all again.
Gab
Be warned that the code is rude and not at all smooth and clean
Thanks to all again.
Gab
![]() |
Other Threads in the Python Forum
- Previous Thread: Reading from DOS
- Next Thread: 'global name 'handle_input' is not defined', Yes it is!
| Thread Tools | Search this Thread |
alarm anydbm app beginner cipher cmd conversion coordinates corners curves cx-freeze data decimals definedlines development dictionary directory dynamic error events excel feet file float format function generator getvalue halp handling homework http import input ip itunes keycontrol leftmouse line linux list lists loan loop maintain maze millimeter module mouse number numbers output parsing path prime programming push py2exe pygame pymailer python queue random rational raw_input recursion recursive schedule screensaverloopinactive script searchingfile slicenotation split sqlite ssh string strings sudokusolver text threading time tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo vigenere web webservice wikipedia wxpython xlwt






