469,649 Members | 1,729 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

Disapearing Icons from a Label Frame!

I wrote a small part of a larger program, and oddly enough, when i try to run it, the icons spontaneously appear and disappear when i mouse over them.
Expand|Select|Wrap|Line Numbers
  1. background_img = Image.open('icons\\background.bmp')
  2. background = ImageTk.PhotoImage(background_img)
  3. buttons = Label(root, image=background, height=100, width=400)
  4. buttons.pack()
  5. exitB = Button(buttons, width=32, height=32, image=exit_Button, text="Exit", command=root.quit).pack()
I'm using Label() instead of Frame() because i need a background picture on the frame that holds the buttons. I'm running Python 2.5 on Windows XP sp 2.
Thanks A lot.
Feb 5 '08 #1
1 1274
Sorry guys,
I fixed it, it had to do with the way is was packing the buttons.
Thanks anyway!
Feb 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Pavan Arise | last post: by
2 posts views Thread by Richard L Rosenheim | last post: by
1 post views Thread by Brian Henry | last post: by
reply views Thread by oll3i | last post: by
4 posts views Thread by =?Utf-8?B?Vmlua2k=?= | last post: by
2 posts views Thread by David Veeneman | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.