| | |
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!
Views: 816 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Python
aliased application bash beginner bits change changecolor character class clear client code corners cturtle database definedlines development dictionary dynamic events examples excel file float format ftp function generator gui homework idiot iframe import input java library line linux list lists loop matching module mouse mysql mysqldb newb number numbers output parsing path port prime program programming projects py2exe pygame pygtk pyqt python random rational raw_input recursion recursive redirect reverse scrolledtext server singleton ssh stdout string strings table tails terminal text thread threading time tkinter tlapse toolbar tuple tutorial ubuntu unicode unix urllib urllib2 valueerror variable web whileloop windows word wxpython






