X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..86aafce32e5f471b0c84fa611ed51bdea85691df:/wxPython/demo/Button.py diff --git a/wxPython/demo/Button.py b/wxPython/demo/Button.py index 628d0936e7..49d0a1aad4 100644 --- a/wxPython/demo/Button.py +++ b/wxPython/demo/Button.py @@ -38,13 +38,13 @@ class TestPanel(wx.Panel): mask = wx.MaskColour(bmp, wx.BLUE) bmp.SetMask(mask) - b = wx.BitmapButton(self, 30, bmp, (160, 20), + b = wx.BitmapButton(self, 30, bmp, (260, 20), (bmp.GetWidth()+10, bmp.GetHeight()+10)) b.SetToolTipString("This is a bitmap button.") self.Bind(wx.EVT_BUTTON, self.OnClick, b) - b = wx.Button(self, 40, "Flat Button", (20,150), style=wx.NO_BORDER) + b = wx.Button(self, 40, "Flat Button?", (20,150), style=wx.NO_BORDER) b.SetToolTipString("This button has a style flag of wx.NO_BORDER") self.Bind(wx.EVT_BUTTON, self.OnClick, b) @@ -79,5 +79,5 @@ placed on nearly any kind of window. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])