Hi,
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. -
background_img = Image.open('icons\\background.bmp')
-
background = ImageTk.PhotoImage(background_img)
-
buttons = Label(root, image=background, height=100, width=400)
-
buttons.pack()
-
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.
1 1413
Sorry guys,
I fixed it, it had to do with the way is was packing the buttons.
Thanks anyway!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Pavan Arise |
last post by:
Hi all..
This may seem simple..but I am stuck here! I have a frame in which
I have a label. I was trying to change the caption of that label via
code (I mean at runtime & not design time). But there is always an
error saying "Compile error: Method or data member not found" I have
no idea how to solve thsi problem. I have created my label on the
frame itself. I tried to do it witha text box instead of a label...but
in vain...the same error...
|
by: Richard L Rosenheim |
last post by:
Can someone confirm/point me to the current specifications for icons for
Windows 2000/XP/2003 systems? I tried searching Google but wasn't able to
find the information.
I'm basically looking to confirm what the OS like in terms of width, height,
color depth for the title bar and desktop icons.
Thanks,
|
by: Brian Henry |
last post by:
Is there any way to get alpha channels to show up right in treeviews? my
images look completely wierd with out it... and the manifest and such are
set up for the newer common controls too
|
by: oll3i |
last post by:
JFrame frame = new JFrame("Wozek");
frame.add(new JLabel(new ImageIcon("cart.jpg")));
final JLabel stan_koszyka = new JLabel("Koszyk jest pusty");
frame.add(stan_koszyka);
int width = 300;
int height = 300;
frame.setSize(width, height);
frame.setVisible(true);
|
by: =?Utf-8?B?Vmlua2k=?= |
last post by:
Hello Everyone,
I have a gridview. I am using template columns inside the gridview.
When I display the gridview on the web page and if there is no value in a
particular cell, gridline disappaers around that cell.I want the grid lines
to appear all the time even if the cell is empty. Can anyone tell me what am
I doing wrong. Below is my gridview. I am showing only one template column. I
have around 14 template column in the gridview.
| |
by: Dave |
last post by:
Hello All,
These one may be a bit tricky, and what I'd like to do may not even be
possible. I would love to hear any ideas you guys have for solving
this.
Here is the situation: I have a form that displays the high-level data
for a set of records in continuous forms mode. I have a simple command
button that will open another form with the details of the selected
record.
|
by: David Veeneman |
last post by:
I'm just getting started with WPF and XAML, and I am trying to create a
traditional menu bar. Everything works until I get to the menu icons. I can
add a bitmap icon to a menu item using this XAML markup:
<MenuItem Header = "Log In">
<MenuItem.Icon>
<Image Source="Resources\LogIn.png" />
</MenuItem.Icon>
</MenuItem>
|
by: crystal2005 |
last post by:
Hi all,
Can anyone tell me why my image doesn't appear in my frame's container? When I change imageIcon to just normal Label, it does go work.
In another condition, if i don't use method return (what is it called? emm...). ImageIcon does work on my normal Label.
package practise;
import java.awt.*;
|
by: dazzler |
last post by:
How do I add "background text" into MDI parent frame, the text will be now erased if I move the MDI Parent frame, or I can also erase text with moving MDI Child frame, need to somehow refresh the text, how to do it?
wx.FULL_REPAINT_ON_RESIZE style on MDI parent frame would help a little, but I would also need to call self.Layout() (and I still can erase the text moving child frame over the text...)
#!/usr/bin/env python
# -*- coding:...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |