Example #1
0
    def __init__(self):
        Gui.SimpleDialog.__init__(self)
        self.Caption = "Transform point series"
        self.Height = 146
        self.Width = 346

        self.label1 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption="x[n] = ",
                                 Top=12,
                                 Left=8)
        self.label2 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption="y[n] = ",
                                 Top=44,
                                 Left=8)
        self.edit1 = vcl.TEdit(None,
                               Parent=self.panel,
                               Top=8,
                               Left=44,
                               Width=270)
        self.edit2 = vcl.TEdit(None,
                               Parent=self.panel,
                               Top=40,
                               Left=44,
                               Width=270)
Example #2
0
 def __init__(self):
     Gui.SimpleDialog.__init__(self,
                               Caption="Area of revolution",
                               Width=275,
                               Height=180,
                               ShowCancel=False)
     self.button1.Caption = "Close"
     self.Label1 = vcl.TLabel(None,
                              Parent=self.panel,
                              Caption="From:",
                              Top=12,
                              Left=8)
     self.Label2 = vcl.TLabel(None,
                              Parent=self.panel,
                              Caption="To:",
                              Top=44,
                              Left=8)
     self.Label5 = vcl.TLabel(None,
                              Parent=self.panel,
                              Caption="Area:",
                              Top=76,
                              Left=8)
     self.Edit1 = vcl.TEdit(None,
                            Parent=self.panel,
                            Top=8,
                            Left=50,
                            Width=100,
                            OnChange=self.EditChange)
     self.Edit2 = vcl.TEdit(None,
                            Parent=self.panel,
                            Top=40,
                            Left=50,
                            Width=100,
                            OnChange=self.EditChange)
     self.Edit3 = vcl.TEdit(None,
                            Parent=self.panel,
                            Top=72,
                            Left=50,
                            Width=100,
                            ReadOnly=True,
                            Color=0xFF00000F)
     self.RadioGroup1 = vcl.TRadioGroup(None,
                                        Parent=self.panel,
                                        Top=8,
                                        Left=160,
                                        Width=85,
                                        Height=60,
                                        Caption="Rotate around",
                                        OnClick=self.EditChange)
     self.RadioGroup1.Items.Text = "X-axis\nY-Axis"
     self.RadioGroup1.ItemIndex = 0
Example #3
0
    def __init__(self, CircleItem=None):
        Gui.SimpleDialog.__init__(self)
        self.CircleItem = CircleItem
        self.Caption = _("Insert circle")
        self.ClientHeight = 160
        self.ClientWidth = 340
        CircleData = CircleItem.PluginData[
            "CircleExample"] if CircleItem else ("", "", "")

        self.label1 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption=_("Radius:"),
                                 Top=12,
                                 Left=8)
        self.label2 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption=_("Center:"),
                                 Top=44,
                                 Left=8)
        self.label3 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption="X:",
                                 Top=44,
                                 Left=55)
        self.label4 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption="Y:",
                                 Top=44,
                                 Left=180)
        self.label5 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption=_("Width:"),
                                 Top=76,
                                 Left=8)
        self.label6 = vcl.TLabel(None,
                                 Parent=self.panel,
                                 Caption=_("Color:"),
                                 Top=76,
                                 Left=180)
        self.edit1 = vcl.TEdit(None,
                               Parent=self.panel,
                               Top=8,
                               Left=70,
                               Width=100,
                               Text=CircleData[0])
        self.edit2 = vcl.TEdit(None,
                               Parent=self.panel,
                               Top=40,
                               Left=70,
                               Width=100,
                               Text=CircleData[1])
        self.edit3 = vcl.TEdit(None,
                               Parent=self.panel,
                               Top=40,
                               Left=215,
                               Width=100,
                               Text=CircleData[2])
        self.edit4 = vcl.TEdit(
            None,
            Parent=self.panel,
            Top=72,
            Left=70,
            Width=100,
            Text=str(CircleItem.Size) if CircleItem else "1")
        self.colorbox = vcl.TExtColorBox(
            None,
            Parent=self.panel,
            Top=72,
            Left=215,
            Width=100,
            Selected=CircleItem.Color if CircleItem else 0x0000FF)