Transparect image on windws.

After some searching i realised how stupid question I asked, and i sow that there isn’t problem in transparecy. My image is transparent but it’s transparent all the way to frame and it ignores any panel under it.

···

----- Original Message -----

From:
SMALLp

Newsgroups:
gmane.comp.python.wxpython

To: wxpython-users@lists.wxwidgets.org

Sent: Tuesday, February 26, 2008 2:41 PM

Subject: Transparect image on windws.

Hy. I can’t get transparent gif image on windows while on linux it works!

import wx
import wx.lib.scrolledpanel as scrolled

progPath = “C:\Documents and Settings\Pofuk\Desktop”

class MainPanel(wx.Panel):
def init(self, parent, id, slika):
wx.Panel.init(self, parent, id, pos=(0, 0), size=(3000, 3000),
style= wx.TAB_TRAVERSAL)
background = progPath + slika
gif = wx.Image(background,
wx.BITMAP_TYPE_GIF).ConvertToBitmap()

wx.StaticBitmap(self, -1, gif, (10, 10), (gif.GetWidth(), gif.GetHeight()))

background = progPath + “\slika2.gif”

gif1 = wx.Image(background,
wx.BITMAP_TYPE_GIF).ConvertToBitmap()

      a = wx.StaticBitmap(self, -1, gif1, (90, 90), (gif1.GetWidth(),
                                         gif1.GetHeight()))
  def OnPaint(self, evt):
      dc = wx.BufferedPaintDC(self, self.buffer)

class MainWindow (wx.ScrolledWindow):
def init(self, parent, id, title, size):
wx.ScrolledWindow.init(self, parent, id, (0, 0),
size=size, style=wx.SUNKEN_BORDER)
panel = MainPanel(self, -1, “\slika.gif”)

      self.SetVirtualSize((3000, 3000))
      self.SetScrollRate(20,20)
      self.Show()

class MainFrame(wx.Frame):
def init(self, parent, id, title):
wx.Frame.init(self, parent, id, title)
a = MainWindow(self, -1, “tt”, (300, 300))

      self.Show()

if name == ‘main’:
app = wx.App()
MainFrame (None, -1, “Karta Medimurja v.0.1 Alpha”)
app.MainLoop()