Beispiel #1
0
 def __init__(self,parent):
     Generic.__init__(self, parent, iconPath="data/icons/pencil.png")
             
     vertical = wx.BoxSizer(wx.VERTICAL)
     
     firstLine = wx.BoxSizer(wx.HORIZONTAL)
     vertical.Add(firstLine)
     
     self.color = ColourPickerWidget.ColourPickerWidget(self)
     firstLine.Add(self.color)
    
     firstLine.Add(wx.StaticText(self,-1,"Thickness :"))
     
     self.widthCtrl = wx.SpinCtrl(self,-1,'1', style= wx.SP_ARROW_KEYS | wx.SP_WRAP)
     firstLine.Add(self.widthCtrl)
     self.mainSizer.AddSpacer(wx.Size(5, 5))
     
     
     self.mainSizer.Add(vertical)
     self.mainSizer.AddSpacer(wx.Size(10, 10))
Beispiel #2
0
 def __init__(self,parent):
     Generic.__init__(self, parent, iconPath="data/icons/fill.png")
             
     vertical = wx.BoxSizer(wx.VERTICAL)
     
     firstLine = wx.BoxSizer(wx.HORIZONTAL)
     vertical.Add(firstLine)
     
     self.color = ColourPickerWidget.ColourPickerWidget(self)
     firstLine.Add(self.color)
     
     firstLine.AddSpacer(wx.Size(5, 5))
     self.windingFill = wx.RadioButton(self, -1, "Winding", style = wx.RB_GROUP)
     self.oddFill = wx.RadioButton(self, -1, "Odd")
     firstLine.Add(self.windingFill)
     firstLine.Add(self.oddFill)
     
     self.mainSizer.AddSpacer(wx.Size(5, 5))
     
     
     self.mainSizer.Add(vertical)
     self.mainSizer.AddSpacer(wx.Size(10, 10))