<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to get a bitmap onto a button, but I 
can't.<BR>Can anyone tell me where to look for a solution?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The call I use is this one:<BR>self.b = 
Button(toolbar, text="nieuw", bitmap="@/test.xbm", width=20, 
command=self.print_msg)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The message I get is this:<BR>Traceback (most 
recent call last):<BR>  File "C:\Documents and Settings\Wim\Mijn 
documenten\Python\overhoor.py", line 143, in -toplevel-<BR>    
app = App(root)<BR>  File "C:\Documents and Settings\Wim\Mijn 
documenten\Python\overhoor.py", line 71, in __init__<BR>    
self.b = Button(toolbar, text="nieuw", bitmap="@/test.xbm", width=20, 
command=self.print_msg)<BR>  File "C:\Python24\lib\lib-tk\Tkinter.py", line 
1939, in __init__<BR>    Widget.__init__(self, master, 'button', 
cnf, kw)<BR>  File "C:\Python24\lib\lib-tk\Tkinter.py", line 1868, in 
__init__<BR>    self.tk.call(<BR>TclError: error reading bitmap 
file "\test.xbm"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This is hapening on a WindowsXP system.<BR>It seems 
as though the file is not found. Because if specify the name of a non-existing 
file, then I get exactly the same error. What could I do to make sure first that 
Puthon does find the file?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,<BR>Wim 
Goffin</FONT></DIV></BODY></HTML>