+ sizer.Add(
+ buttonBox, (len(self.throbbers) + 2, 0), (1, 3), flag = wx.ALIGN_CENTER
+ )
+
+ # Buttoms for the custom throbber.
+ nextButton = wx.Button(self, -1, "Next")
+ self.Bind(wx.EVT_BUTTON, self.OnNext, nextButton)
+
+ prevButton = wx.Button(self, -1, "Previous")
+ self.Bind(wx.EVT_BUTTON, self.OnPrevious, prevButton)
+
+ incButton = wx.Button(self, -1, "Increment")
+ self.Bind(wx.EVT_BUTTON, self.OnIncrement, incButton)
+
+ decButton = wx.Button(self, -1, "Decrement")
+ self.Bind(wx.EVT_BUTTON, self.OnDecrement, decButton)
+
+ revButton = wx.Button(self, -1, "Reverse")
+ self.Bind(wx.EVT_BUTTON, self.OnReverse, revButton)
+
+ restButton = wx.Button(self, -1, "Rest")
+ self.Bind(wx.EVT_BUTTON, self.OnRest, restButton)
+
+ startButton = wx.Button(self, -1, "Start")
+ self.Bind(wx.EVT_BUTTON, self.OnStart, startButton)
+
+ stopButton = wx.Button(self, -1, "Stop")
+ self.Bind(wx.EVT_BUTTON, self.OnStop, stopButton)
+
+ customBox1 = wx.BoxSizer(wx.HORIZONTAL)
+ customBox1.AddMany([
+ (nextButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ (prevButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ (incButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ (decButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ (revButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ ])
+
+ customBox2 = wx.BoxSizer(wx.HORIZONTAL)
+ customBox2.AddMany([
+ (restButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ (startButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ (stopButton, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5),
+ ])
+
+ sizer.Add( customBox1, (len(self.throbbers) + 5, 0), (1, 3), flag = wx.ALIGN_CENTER )
+ sizer.Add( customBox2, (len(self.throbbers) + 6, 0), (1, 3), flag = wx.ALIGN_CENTER )