X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec873c943d71f0d5f13e3398557071448cda6c23..a4027e74873007e3430af3bd77019bcab76f6c04:/wxPython/samples/wxPIA_book/Chapter-07/bitmap_button.py diff --git a/wxPython/samples/wxPIA_book/Chapter-07/bitmap_button.py b/wxPython/samples/wxPIA_book/Chapter-07/bitmap_button.py deleted file mode 100644 index 15a17773bd..0000000000 --- a/wxPython/samples/wxPIA_book/Chapter-07/bitmap_button.py +++ /dev/null @@ -1,25 +0,0 @@ -import wx - -class BitmapButtonFrame(wx.Frame): - def __init__(self): - wx.Frame.__init__(self, None, -1, 'Bitmap Button Example', - size=(200, 150)) - panel = wx.Panel(self, -1) - bmp = wx.Image("bitmap.bmp", wx.BITMAP_TYPE_BMP).ConvertToBitmap() - self.button = wx.BitmapButton(panel, -1, bmp, pos=(10, 20)) - self.Bind(wx.EVT_BUTTON, self.OnClick, self.button) - self.button.SetDefault() - self.button2 = wx.BitmapButton(panel, -1, bmp, pos=(100, 20), - style=0) - self.Bind(wx.EVT_BUTTON, self.OnClick, self.button2) - - def OnClick(self, event): - self.Destroy() - -if __name__ == '__main__': - app = wx.PySimpleApp() - frame = BitmapButtonFrame() - frame.Show() - app.MainLoop() - -