Hello, I have a wxpython application and I just created a banner during start up that is just a wxframe with a bitmap image in it. It appears just great on my computer. however I installed my program on my work computer and the image is appears but it is transparent??? what might be the problem? I attached the code for the frame containing the banner. thanks!
Jeff
------------------------------------------------------------------------
Yahoo! Mail
Use Photomail <Yahooist Teil der Yahoo Markenfamilie; to share photos without annoying attachments.
------------------------------------------------------------------------
#Boa:Frame:Banner
import wx
def create(parent):
return Banner(parent)
[wxID_BANNER, wxID_BANNERSTATICBITMAP1, ] = [wx.NewId() for _init_ctrls in range(2)]
[wxID_BANNERTIMER1] = [wx.NewId() for _init_utils in range(1)]
class Banner(wx.Frame):
def _init_coll_boxSizer1_Items(self, parent):
# generated method, don't edit
parent.AddWindow(self.staticBitmap1, 1, border=0, flag=wx.EXPAND)
def _init_utils(self):
# generated method, don't edit
self.timer1 = wx.Timer(id=wxID_BANNERTIMER1, owner=self)
self.Bind(wx.EVT_TIMER, self.OnTimer1Timer, id=wxID_BANNERTIMER1)
def _init_sizers(self):
# generated method, don't edit
self.boxSizer1 = wx.BoxSizer(orient=wx.VERTICAL)
self._init_coll_boxSizer1_Items(self.boxSizer1)
self.SetSizer(self.boxSizer1)
def _init_ctrls(self, prnt):
# generated method, don't edit
wx.Frame.__init__(self, id=wxID_BANNER, name='Banner', parent=prnt,
pos=wx.Point(541, 305), size=wx.Size(667, 257),
style=wx.NO_3D | wx.NO_BORDER | wx.FRAME_FLOAT_ON_PARENT,
title='')
self._init_utils()
self.SetClientSize(wx.Size(659, 217))
self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap('C:/Documents and Settings/Jeffrey Peery/My Documents/Code/PYTHON APPLICATIONS/Avance Engineering/Figures/banner.bmp',
wx.BITMAP_TYPE_BMP), id=wxID_BANNERSTATICBITMAP1,
name='staticBitmap1', parent=self, pos=wx.Point(0, 0),
size=wx.Size(659, 217), style=0)
self.staticBitmap1.Center(wx.VERTICAL)
self.staticBitmap1.SetToolTipString('')
self._init_sizers()
def __init__(self, parent):
self._init_ctrls(parent)
self.timer1.Start(5000)
def OnTimer1Timer(self, event):
self.Destroy()
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org