Beispiel #1
0
    def __init__(self, parent, *args, **kwargs):
        wx.Panel.__init__(self, parent, *args, **kwargs)

        self.parent = self.GetTopLevelParent()
        self.tree = self.parent.document
        self.item = self.tree.GetSelection()
        self.xml = self.tree.GetItemPyData(self.item)

        self.staticBox = wx.StaticBox(self, -1, _(u"Position"))

        self.topLabel = wx.StaticText(self, -1, _(u"top"))
        self.topSpin = wx.ComboBox(self, -1, "", wx.DefaultPosition, (90, -1), style=wx.CB_DROPDOWN, name="positionTop")
        self.topSpin.SetValue(u"auto")
        self.topSpin.SetValidator(positionValidator(self))
        self.leftLabel = wx.StaticText(self, -1, _(u"left"))
        self.leftSpin = wx.ComboBox(self, -1, "", wx.DefaultPosition, (90, -1), style=wx.CB_DROPDOWN, name="positionLeft")
        self.leftSpin.SetValue(u"auto")
        self.leftSpin.SetValidator(positionValidator(self))
        self.rightLabel = wx.StaticText(self, -1, _(u"right"))
        self.rightSpin = wx.ComboBox(self, -1, "", wx.DefaultPosition, (90, -1), style=wx.CB_DROPDOWN, name="positionRight")
        self.rightSpin.SetValue(u"auto")
        self.rightSpin.SetValidator(positionValidator(self))
        self.bottomLabel = wx.StaticText(self, -1, _(u"bottom"))
        self.bottomSpin = wx.ComboBox(self, -1, "", wx.DefaultPosition, (90, -1), style=wx.CB_DROPDOWN, name="positionBottom")
        self.bottomSpin.SetValue(u"auto")
        self.bottomSpin.SetValidator(positionValidator(self))
        self.unitBox = measureUnit(self)

        self.__doProperties()
        self.__doLayout()
        self.InitDialog()
        Safety(self)
Beispiel #2
0
    def __init__(self, parent, *args, **kwargs):
        wx.Panel.__init__(self, parent, *args, **kwargs)

        self.parent = self.GetTopLevelParent()
        self.tree = self.parent.document
        self.item = self.tree.GetSelection()
        self.xml = self.tree.GetItemPyData(self.item)

        self.staticBox = wx.StaticBox(self, -1, _(u"Dimensions"))
        self.labelWidth = wx.StaticText(self, -1, _(u"Width"))
        self.spinWidth = wx.ComboBox(self,
                                     -1,
                                     "",
                                     wx.DefaultPosition, (90, -1),
                                     style=wx.CB_DROPDOWN,
                                     name="dimensionWidth")
        self.spinWidth.SetValue(u"auto")
        self.spinWidth.SetValidator(dimensionValidator(self))
        self.labelHeight = wx.StaticText(self, -1, _(u"Height"))
        self.spinHeight = wx.ComboBox(self,
                                      -1,
                                      "",
                                      wx.DefaultPosition, (90, -1),
                                      style=wx.CB_DROPDOWN,
                                      name="dimensionHeight")
        self.spinHeight.SetValue(u"auto")
        self.spinHeight.SetValidator(dimensionValidator(self))
        self.unitBox = measureUnit(self)

        self.__doProperties()
        self.__doLayout()
        self.InitDialog()
        Safety(self)
Beispiel #3
0
    def __init__(self, parent, *args, **kwargs):
        wx.Panel.__init__(self, parent, *args, **kwargs)

        self.parent = self.GetTopLevelParent()
        self.tree = self.parent.document
        self.item = self.tree.GetSelection()
        self.xml = self.tree.GetItemPyData(self.item)

        self.staticBox = wx.StaticBox(self, -1, _(u"Position"))

        self.topLabel = wx.StaticText(self, -1, _(u"top"))
        self.topSpin = wx.ComboBox(self,
                                   -1,
                                   "",
                                   wx.DefaultPosition, (90, -1),
                                   style=wx.CB_DROPDOWN,
                                   name="positionTop")
        self.topSpin.SetValue(u"auto")
        self.topSpin.SetValidator(positionValidator(self))
        self.leftLabel = wx.StaticText(self, -1, _(u"left"))
        self.leftSpin = wx.ComboBox(self,
                                    -1,
                                    "",
                                    wx.DefaultPosition, (90, -1),
                                    style=wx.CB_DROPDOWN,
                                    name="positionLeft")
        self.leftSpin.SetValue(u"auto")
        self.leftSpin.SetValidator(positionValidator(self))
        self.rightLabel = wx.StaticText(self, -1, _(u"right"))
        self.rightSpin = wx.ComboBox(self,
                                     -1,
                                     "",
                                     wx.DefaultPosition, (90, -1),
                                     style=wx.CB_DROPDOWN,
                                     name="positionRight")
        self.rightSpin.SetValue(u"auto")
        self.rightSpin.SetValidator(positionValidator(self))
        self.bottomLabel = wx.StaticText(self, -1, _(u"bottom"))
        self.bottomSpin = wx.ComboBox(self,
                                      -1,
                                      "",
                                      wx.DefaultPosition, (90, -1),
                                      style=wx.CB_DROPDOWN,
                                      name="positionBottom")
        self.bottomSpin.SetValue(u"auto")
        self.bottomSpin.SetValidator(positionValidator(self))
        self.unitBox = measureUnit(self)

        self.__doProperties()
        self.__doLayout()
        self.InitDialog()
        Safety(self)
Beispiel #4
0
    def __init__(self, parent, *args, **kwargs):
        wx.Panel.__init__(self, parent, *args, **kwargs)

        self.parent = self.GetTopLevelParent()
        self.tree = self.parent.document
        self.item = self.tree.GetSelection()
        self.xml = self.tree.GetItemPyData(self.item)

        self.staticBox = wx.StaticBox(self, -1, _(u"Dimensions"))
        self.labelWidth = wx.StaticText(self, -1, _(u"Width"))
        self.spinWidth = wx.ComboBox(self, -1, "", wx.DefaultPosition, (90, -1), style=wx.CB_DROPDOWN, name="dimensionWidth")
        self.spinWidth.SetValue(u"auto")
        self.spinWidth.SetValidator(dimensionValidator(self))
        self.labelHeight = wx.StaticText(self, -1, _(u"Height"))
        self.spinHeight = wx.ComboBox(self, -1, "", wx.DefaultPosition, (90, -1), style=wx.CB_DROPDOWN, name="dimensionHeight")
        self.spinHeight.SetValue(u"auto")
        self.spinHeight.SetValidator(dimensionValidator(self))
        self.unitBox = measureUnit(self)

        self.__doProperties()
        self.__doLayout()
        self.InitDialog()
        Safety(self)