4
#----------------------------------------------------------------------
48
wx.ID_REVERT_TO_SAVED,
65
class TestPanel(wx.Panel):
66
def __init__(self, parent, log):
68
wx.Panel.__init__(self, parent, -1)
70
sizer = wx.FlexGridSizer(cols=5, hgap=4, vgap=4)
72
b = wx.Button(self, ID)
78
#----------------------------------------------------------------------
80
def runTest(frame, nb, log):
81
win = TestPanel(nb, log)
84
#----------------------------------------------------------------------
88
overview = """<html><body>
89
<h2><center>Stock Buttons</center></h2>
91
It is now possible to create \"stock\" buttons. Basically this means
92
that you only have to provide one of the stock IDs (and an empty
93
label) when creating the button and wxWidgets will choose the stock
94
label to go with it automatically. Additionally on the platforms that
95
have a native concept of a stock button (currently only GTK2) then the
96
native stock button will be used.
98
<p>This sample shows buttons for all of the currenlty available stock
99
IDs. Notice that when the button is created that no label is given,
100
and compare that with the button that is created.
108
if __name__ == '__main__':
111
run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])