def __build_okbutton(self): ''' builds and returns the ok button for this form ''' button = Button() button.DialogResult = DialogResult.OK button.Location = Point(15, 362) button.Size = Size(90, 24) button.Text = i18n.get("SeriesFormOK") return button
def __build_okbutton(self): """ builds and returns the ok button for this form """ button = Button() button.DialogResult = DialogResult.OK button.Location = Point(223, 362) if self.__config.show_covers_b else Point(10, 362) button.Size = Size(90, 24) button.Text = i18n.get("IssueFormOK") return button
def __build_skipbutton(self): ''' builds and return the skip button for this form ''' button = Button() button.DialogResult = DialogResult.Ignore button.Location = Point(110, 362) button.Size = Size(90, 24) button.Text = i18n.get("SeriesFormSkip") return button
def __build_skipbutton(self): """ builds and returns the skip button for this form """ button = Button() button.DialogResult = DialogResult.Ignore button.Location = Point(318, 362) if self.__config.show_covers_b else Point(105, 362) button.Size = Size(90, 24) button.Text = i18n.get("IssueFormSkip") return button
def __build_cancel_button(self): ''' builds and returns the cancel button for this form ''' button = Button() button.DialogResult = DialogResult.Cancel button.Location = Point(315, 343) button.Size = Size(90, 23) button.Text = i18n.get("ConfigFormCancel") return button
def __build_backbutton(self): """ builds and returns the back button for this form """ button = Button() button.DialogResult = DialogResult.Retry button.Location = Point(595, 362) button.Size = Size(125, 24) button.Text = i18n.get("IssueFormGoBack") return button
def __build_okbutton(self): ''' builds and returns the ok button for this form ''' button = Button() button.DialogResult = DialogResult.OK button.Location = Point(228, 343) button.Size = Size(80, 23) button.Text = i18n.get("ConfigFormOK") return button
def __build_backbutton(self): ''' builds and returns the back button for this form ''' button = Button() button.DialogResult = DialogResult.Retry button.Location = Point(595, 362) button.Size = Size(125, 24) button.Text = i18n.get("IssueFormGoBack") return button
def __build_restore_button(self): ''' builds and returns the restore button for this form ''' button = Button() button.Click += self.__fired_restore_defaults button.Location = Point(10, 343) button.Size = Size(170, 23) button.Text = i18n.get("ConfigFormRestore") return button
def __build_okbutton(self): ''' Builds and returns the ok button for this form. ''' button = Button() button.DialogResult = DialogResult.OK button.Location = Point(10, 68) button.Size = Size(145, 23) button.Text = i18n.get("WelcomeFormStart") button.UseVisualStyleBackColor = True return button
def __build_cancelbutton(self): ''' Builds and returns the cancel button for this form. ''' button = Button() button.DialogResult = DialogResult.Cancel button.Location = Point(314, 68) button.Size = Size(90, 23) button.Text = i18n.get("WelcomeFormCancel") button.UseVisualStyleBackColor = True return button
def __build_settingsbutton(self): ''' Builds and returns the settings button for this form. ''' button = Button() button.Click += self.__show_configform button.Location = Point(208, 68) button.Size = Size(100, 23) button.Text = i18n.get("WelcomeFormSettings") button.UseVisualStyleBackColor = True return button
def __build_okbutton(self): ''' Builds and returns the ok button for this form. ''' button = Button() button.DialogResult = DialogResult.OK button.Location = Point(105, 58) button.Size = Size(90, 23) button.Text = i18n.get("MessageBoxOk") button.UseVisualStyleBackColor = True return button
def __build_cancelbutton(self): ''' builds and returns the cancel button for this form ''' button = Button() button.DialogResult = DialogResult.Cancel button.Location = Point(335, 170 if self.__fail_label_is_visible else 70) button.Size = Size(90, 23) button.Text = i18n.get("SearchFormCancel") button.UseVisualStyleBackColor = True return button
def __build_issuesbutton(self): ''' builds and return the 'show issues' button for this form ''' button = Button() button.DialogResult = DialogResult.Yes button.Location = Point(395, 362) \ if self.__config.show_covers_b else Point(605, 362) button.Size = Size(115, 24) button.Text = i18n.get("SeriesFormIssues") return button
def init_btn(self, x, y, text, handler): btn = Button() btn.Text = text btn.BackColor = Color.FromArgb(50, 50, 50) btn.Location = self.btn_pos(x, y) btn.Size = Size(60, 30) btn.FlatStyle = FlatStyle.Flat btn.FlatAppearance.BorderSize = 1 btn.Click += handler return btn
def __build_okbutton(self): ''' builds and returns the ok button for this form ''' button = Button() button.DialogResult = DialogResult.OK button.Location = Point(223, 362) \ if self.__config.show_covers_b else Point(10, 362) button.Size = Size(90, 24) button.Text = i18n.get("IssueFormOK") return button
def __build_skipbutton(self): ''' builds and returns the skip button for this form ''' button = Button() button.DialogResult = DialogResult.Ignore button.Location = Point(318, 362) \ if self.__config.show_covers_b else Point(105, 362) button.Size = Size(90, 24) button.Text = i18n.get("IssueFormSkip") return button
def __build_searchbutton(self): ''' builds and return the 'search again' button for this form ''' button = Button() button.DialogResult = DialogResult.Retry button.Location = Point(275, 362) \ if self.__config.show_covers_b else Point(485, 362) button.Size = Size(115, 24) button.Text = i18n.get("SeriesFormAgain") return button
def __build_prevbutton(self): ''' Builds and returns the 'previous' button for this panel. ''' button = Button() button.Location = Point(2, 332) button.Size = Size(20, 24) button.Text = '<' button.Font = Font(button.Font, FontStyle.Bold) button.UseVisualStyleBackColor = True button.Click += self.__button_click_fired # note: this button's visibility is manipulated by __update return button
def buttonbox(self): posx = 10 buttonHeight = 40 buttonwidth = 200 w = Button() w.Text = "保存" w.Location = Point(posx, self.Posy) w.Size = Size(buttonwidth, buttonHeight) w.ForeColor = Color.Blue w.Click += self.ok w.Parent = self posx = w.Right + 20 w1 = Button() w1.Text = "退出" w1.Location = Point(posx, self.Posy) w1.Size = Size(buttonwidth, buttonHeight) w1.ForeColor = Color.Blue w1.Click += self.cancel w1.Parent = self self.Posy = w1.Bottom
def __build_cancelbutton(self): ''' Builds and returns the cancel button for this form. ''' button = Button() button.Text="" # gets updated by the 'update' method def cancel(sender, args): button.Enabled = False self.Close() button.Click+=cancel button.Location = Point(78, 572) button.Size = Size(190, 23) button.Anchor = AnchorStyles.Bottom return button
def __init__(self, title): # Create the form self.Name = "Create Window" self.Text = title self.Size = Size(370, 590) self.CenterToScreen() self.value = "" self.value1 = "" self.value2 = "" self.value3 = "" self.value4 = "" self.value5 = "" self.value6 = "" self.value7 = "" self.value8 = "" self.finalValue = [] # Create label for input title labelDiv = Label(Text="Door Type") labelDiv.Parent = self labelDiv.Size = Size(150, 20) labelDiv.Location = Point(30, 40) # Create TextBox for input self.textboxDiv = TextBox() self.textboxDiv.Parent = self self.textboxDiv.Text = "" self.textboxDiv.Location = Point(200, 40) # Create label for input title labelDiv1 = Label(Text="Door Frame Type") labelDiv1.Parent = self labelDiv1.Size = Size(150, 20) labelDiv1.Location = Point(30, 80) # Create TextBox for input self.textboxDiv1 = TextBox() self.textboxDiv1.Parent = self self.textboxDiv1.Text = "" self.textboxDiv1.Location = Point(200, 80) # Create label for input title labelDiv2 = Label(Text="Door Frame Finish") labelDiv2.Parent = self labelDiv2.Size = Size(150, 20) labelDiv2.Location = Point(30, 120) # Create TextBox for input self.textboxDiv2 = TextBox() self.textboxDiv2.Parent = self self.textboxDiv2.Text = "" self.textboxDiv2.Location = Point(200, 120) # Create label for input title labelDiv3 = Label(Text="Door Leaf Type") labelDiv3.Parent = self labelDiv3.Size = Size(150, 20) labelDiv3.Location = Point(30, 160) # Create TextBox for input self.textboxDiv3 = TextBox() self.textboxDiv3.Parent = self self.textboxDiv3.Text = "" self.textboxDiv3.Location = Point(200, 160) # Create label for input title labelDiv4 = Label(Text="Meeting Styles") labelDiv4.Parent = self labelDiv4.Size = Size(150, 20) labelDiv4.Location = Point(30, 200) # Create TextBox for input self.textboxDiv4 = TextBox() self.textboxDiv4.Parent = self self.textboxDiv4.Text = "" self.textboxDiv4.Location = Point(200, 200) # Create label for input title labelDiv5 = Label(Text="Door Leaf Material") labelDiv5.Parent = self labelDiv5.Size = Size(150, 20) labelDiv5.Location = Point(30, 240) # Create TextBox for input self.textboxDiv5 = TextBox() self.textboxDiv5.Parent = self self.textboxDiv5.Text = "" self.textboxDiv5.Location = Point(200, 240) # Create label for input title labelDiv6 = Label(Text="Door Leaf Finish") labelDiv6.Parent = self labelDiv6.Size = Size(150, 20) labelDiv6.Location = Point(30, 280) # Create TextBox for input self.textboxDiv6 = TextBox() self.textboxDiv6.Parent = self self.textboxDiv6.Text = "" self.textboxDiv6.Location = Point(200, 280) # Create label for input title labelDiv7 = Label(Text="Fire/Smoke") labelDiv7.Parent = self labelDiv7.Size = Size(150, 20) labelDiv7.Location = Point(30, 320) # Create TextBox for input self.textboxDiv7 = TextBox() self.textboxDiv7.Parent = self self.textboxDiv7.Text = "" self.textboxDiv7.Location = Point(200, 320) # Create label for input title labelDiv8 = Label(Text="Door Security") labelDiv8.Parent = self labelDiv8.Size = Size(150, 20) labelDiv8.Location = Point(30, 360) # Create TextBox for input self.textboxDiv8 = TextBox() self.textboxDiv8.Parent = self self.textboxDiv8.Text = "" self.textboxDiv8.Location = Point(200, 360) # Create label for input title labelDiv9 = Label(Text="Misc") labelDiv9.Parent = self labelDiv9.Size = Size(150, 20) labelDiv9.Location = Point(30, 400) # Create TextBox for input self.textboxDiv9 = TextBox() self.textboxDiv9.Parent = self self.textboxDiv9.Text = "" self.textboxDiv9.Location = Point(200, 400) # Create label for input title labelDiv10 = Label(Text="Comments") labelDiv10.Parent = self labelDiv10.Size = Size(150, 20) labelDiv10.Location = Point(30, 440) # Create TextBox for input self.textboxDiv10 = TextBox() self.textboxDiv10.Parent = self self.textboxDiv10.Text = "" self.textboxDiv10.Location = Point(200, 440) # Create button button = Button() button.Parent = self button.Text = "Ok" button.Location = Point(200, 490) button.Size = Size(100, 20) # Register event button.Click += self.ButtonClicked
def __init__(self): self.Text = 'Ping & Traceroute & ARP & Netstat' startPosition = FormStartPosition() self.StartPosition = startPosition.CenterScreen #self.Height = 500 #self.Width = 500 self.MaximizeBox = False self.MinimumSize = Size(910, 570) self.MaximumSize = Size(910, 570) #TextBox Panel Wyswietlacz #self.utf = UTF8Encoding() scrollBars = ScrollBars() self.GrupaPing = GroupBox() self.GrupaPing.Text = "Parametry Ping" self.GrupaPing.Size = Size(150, 220) self.GrupaPing.Location = Point(5, 5) #self.GrupaPing.Parent = self self.Hostlb = Label() self.Hostlb.Size = Size(32, 20) self.Hostlb.Location = Point(17, 27) self.Hostlb.Text = "Host: " self.ParamPinglb = Label() self.ParamPinglb.Size = Size(80, 20) self.ParamPinglb.Location = Point(17, 47) self.ParamPinglb.Text = "Parametry:" self.ChbLiczbaPakietow = CheckBox() self.ChbLiczbaPakietow.Checked = False self.ChbLiczbaPakietow.Text = "-n:" self.ChbLiczbaPakietow.Location = Point(17, 80) self.ChbPakiWielkoscetow = CheckBox() self.ChbPakiWielkoscetow.Checked = False self.ChbPakiWielkoscetow.Text = "-l:" self.ChbPakiWielkoscetow.Location = Point(17, 117) self.ChbTTL = CheckBox() self.ChbTTL.Checked = False self.ChbTTL.Text = "-i:" self.ChbTTL.Location = Point(17, 155) self.pingNtb = TextBox() self.pingNtb.Height = 30 self.pingNtb.Width = 50 self.pingNtb.Location = Point(52, 83) self.pingLtb = TextBox() self.pingLtb.Height = 30 self.pingLtb.Width = 50 self.pingLtb.Location = Point(52, 120) self.pingIttl = TextBox() self.pingIttl.Height = 30 self.pingIttl.Width = 50 self.pingIttl.Location = Point(52, 158) self.Hosttb = TextBox() self.Hosttb.Location = Point(52, 25) self.Hosttb.Height = 30 self.Hosttb.Width = 90 self.Hosttb.Text = "8.8.8.8" self.pingNlb = Label() self.pingNlb.Size = Size(100, 20) self.pingNlb.Location = Point(15, 65) self.pingNlb.Text = "Liczba pakietow:" self.pingLlb = Label() self.pingLlb.Size = Size(110, 20) self.pingLlb.Location = Point(15, 102) self.pingLlb.Text = "Wielkosc pakietow:" self.pingIlb = Label() self.pingIlb.Size = Size(100, 20) self.pingIlb.Location = Point(15, 140) self.pingIlb.Text = "Czas wygasniecia:" self.count = 0 button = Button() button.Text = "Ping !" button.Size = Size(130, 30) button.Location = Point(15, 185) button.Click += self.buttonPressed self.GrupaTracert = GroupBox() self.GrupaTracert.Text = "Parametry Traceroute" self.GrupaTracert.Size = Size(150, 150) self.GrupaTracert.Location = Point(5, 225) self.ParamTraclb = Label() self.ParamTraclb.Size = Size(80, 40) self.ParamTraclb.Location = Point(17, 270) self.ParamTraclb.Text = "Limit liczby przeskokow:" self.Host1lb = Label() self.Host1lb.Size = Size(32, 20) self.Host1lb.Location = Point(17, 248) self.Host1lb.Text = "Host: " self.HostTractb = TextBox() self.HostTractb.Location = Point(52, 245) self.HostTractb.Height = 30 self.HostTractb.Width = 90 self.HostTractb.Text = "8.8.8.8" self.LimitTractb = TextBox() self.LimitTractb.Location = Point(52, 309) self.LimitTractb.Height = 30 self.LimitTractb.Width = 60 self.LimitTractb.Text = "30" self.ChLimitPrzeskokow = CheckBox() self.ChLimitPrzeskokow.Checked = False self.ChLimitPrzeskokow.Text = "-h: " self.ChLimitPrzeskokow.Location = Point(17, 308) self.count = 0 button1 = Button() button1.Text = "Tracert !" button1.Size = Size(130, 30) button1.Location = Point(15, 335) button1.Click += self.button1Pressed self.GrupaARP = GroupBox() self.GrupaARP.Text = "Parametry ARP" self.GrupaARP.Size = Size(150, 150) self.GrupaARP.Location = Point(5, 375) self.ParamA = Label() self.ParamA.Size = Size(70, 30) self.ParamA.Location = Point(17, 395) self.ParamA.Text = "Wyswietlenie tablicy ARP:" self.ParamV = Label() self.ParamV.Size = Size(70, 40) self.ParamV.Location = Point(17, 435) self.ParamV.Text = "Wyswietlenie pelnej tablicy ARP:" self.ChA = CheckBox() self.ChA.Checked = True self.ChA.Enabled = False self.ChA.Size = Size(37, 20) self.ChA.Text = "-a" self.ChA.Location = Point(115, 400) self.ChV = CheckBox() self.ChV.Checked = False self.ChV.Size = Size(37, 20) self.ChV.Text = "-v" self.ChV.Location = Point(115, 440) self.count = 0 button2 = Button() button2.Text = "ARP !" button2.Size = Size(130, 30) button2.Location = Point(15, 485) button2.Click += self.button2Pressed self.GrupaNET = GroupBox() self.GrupaNET.Text = "Parametry Netstat" self.GrupaNET.Size = Size(155, 260) self.GrupaNET.Location = Point(735, 5) self.ParamAnetstat = Label() self.ParamAnetstat.Size = Size(90, 50) self.ParamAnetstat.Location = Point(745, 20) self.ParamAnetstat.Text = "Wszystkie aktywne polaczenia:" self.ChAnetstat = CheckBox() self.ChAnetstat.Checked = False self.ChAnetstat.Size = Size(37, 20) self.ChAnetstat.Text = "-a" self.ChAnetstat.Location = Point(845, 30) self.ParamE = Label() self.ParamE.Size = Size(90, 50) self.ParamE.Location = Point(745, 60) self.ParamE.Text = "Statystyki sieci Ethernet:" self.ChE = CheckBox() self.ChE.Checked = False self.ChE.Size = Size(37, 20) self.ChE.Text = "-e" self.ChE.Location = Point(845, 65) self.ParamF = Label() self.ParamF.Size = Size(90, 50) self.ParamF.Location = Point(745, 90) self.ParamF.Text = "Nazwy domen adresow obcych:" self.ChF = CheckBox() self.ChF.Checked = False self.ChF.Size = Size(37, 20) self.ChF.Text = "-f" self.ChF.Location = Point(845, 100) self.ParamO = Label() self.ParamO.Size = Size(90, 50) self.ParamO.Location = Point(745, 127) self.ParamO.Text = "Identyfikator polaczenia:" self.ChO = CheckBox() self.ChO.Checked = False self.ChO.Size = Size(37, 20) self.ChO.Text = "-o" self.ChO.Location = Point(845, 130) self.ParamR = Label() self.ParamR.Size = Size(90, 50) self.ParamR.Location = Point(745, 165) self.ParamR.Text = "Tabele routingu: " self.ChR = CheckBox() self.ChR.Checked = False self.ChR.Size = Size(37, 20) self.ChR.Text = "-r" self.ChR.Location = Point(845, 165) self.ParamS = Label() self.ParamS.Size = Size(90, 50) self.ParamS.Location = Point(745, 185) self.ParamS.Text = "Statystyka protokolow: " self.ChS = CheckBox() self.ChS.Checked = False self.ChS.Size = Size(37, 20) self.ChS.Text = "-s" self.ChS.Location = Point(845, 195) self.count = 0 button3 = Button() button3.Text = "Netstat !" button3.Size = Size(130, 30) button3.Location = Point(745, 225) button3.Click += self.button3Pressed self.ipconfig = GroupBox() self.ipconfig.Text = "IPconfig" self.ipconfig.Size = Size(155, 260) self.ipconfig.Location = Point(735, 265) self.ParamPodst = Label() self.ParamPodst.Size = Size(80, 50) self.ParamPodst.Location = Point(745, 290) self.ParamPodst.Text = "IP dane podstawowe: " self.ChPod = CheckBox() self.ChPod.Checked = False self.ChPod.Size = Size(63, 30) self.ChPod.Text = "ipconfig" self.ChPod.Location = Point(820, 288) self.ParamALL = Label() self.ParamALL.Size = Size(80, 50) self.ParamALL.Location = Point(745, 320) self.ParamALL.Text = "IP dane szczegolowe: " self.ChAll = CheckBox() self.ChAll.Checked = False self.ChAll.Size = Size(50, 30) self.ChAll.Text = "all" self.ChAll.Location = Point(820, 322) self.ParamRelease = Label() self.ParamRelease.Size = Size(80, 50) self.ParamRelease.Location = Point(745, 350) self.ParamRelease.Text = "Zwolnienie adresów IPv4: " self.ChRelease = CheckBox() self.ChRelease.Checked = False self.ChRelease.Size = Size(67, 30) self.ChRelease.Text = "release" self.ChRelease.Location = Point(820, 352) self.ParamRenew = Label() self.ParamRenew.Size = Size(80, 50) self.ParamRenew.Location = Point(745, 380) self.ParamRenew.Text = "Odnowienie adresów IPv4: " self.ChRenew = CheckBox() self.ChRenew.Checked = False self.ChRenew.Size = Size(67, 30) self.ChRenew.Text = "renev" self.ChRenew.Location = Point(820, 382) self.ParamDisplaydns = Label() self.ParamDisplaydns.Size = Size(80, 50) self.ParamDisplaydns.Location = Point(745, 415) self.ParamDisplaydns.Text = "Pokaż wpisy DNS: " self.ChDisplaydns = CheckBox() self.ChDisplaydns.Checked = False self.ChDisplaydns.Size = Size(62, 30) self.ChDisplaydns.Text = "displaydns" self.ChDisplaydns.Location = Point(820, 417) self.ParamFlushdns = Label() self.ParamFlushdns.Size = Size(80, 50) self.ParamFlushdns.Location = Point(745, 445) self.ParamFlushdns.Text = "Czysc wpisy DNS: " self.ChFlushdns = CheckBox() self.ChFlushdns.Checked = False self.ChFlushdns.Size = Size(67, 30) self.ChFlushdns.Text = "flushdns" self.ChFlushdns.Location = Point(820, 447) self.count = 0 button4 = Button() button4.Text = "Ipconfig !" button4.Size = Size(130, 30) button4.Location = Point(745, 485) button4.Click += self.button4Pressed #Okno niezale¿ne self.Wyswietlacz = TextBox() self.Wyswietlacz.Location = Point(159, 10) self.Wyswietlacz.Height = 515 self.Wyswietlacz.Width = 570 self.Wyswietlacz.Multiline = True self.Wyswietlacz.ScrollBars = scrollBars.Both self.Wyswietlacz.ScrollBars = scrollBars.Vertical #Pierwsza grupa# self.Controls.Add(self.Hostlb) self.Controls.Add(self.pingIttl) self.Controls.Add(self.pingNtb) self.Controls.Add(self.pingLtb) self.Controls.Add(self.ParamPinglb) self.Controls.Add(self.ChbTTL) self.Controls.Add(self.ChbLiczbaPakietow) self.Controls.Add(self.ChbPakiWielkoscetow) self.Controls.Add(self.pingIlb) self.Controls.Add(self.pingLlb) self.Controls.Add(self.pingNlb) self.Controls.Add(self.Hosttb) self.Controls.Add(button) self.Controls.Add(self.GrupaPing) #Druga grupa# self.Controls.Add(button1) self.Controls.Add(self.LimitTractb) self.Controls.Add(self.HostTractb) self.Controls.Add(self.ChLimitPrzeskokow) self.Controls.Add(self.Host1lb) self.Controls.Add(self.ParamTraclb) self.Controls.Add(self.GrupaTracert) #Trzecia grupa# self.Controls.Add(button2) self.Controls.Add(self.ChA) self.Controls.Add(self.ChV) self.Controls.Add(self.ParamA) self.Controls.Add(self.ParamV) self.Controls.Add(self.GrupaARP) #Czwarta grupa# self.Controls.Add(button3) self.Controls.Add(self.ChAnetstat) self.Controls.Add(self.ChF) self.Controls.Add(self.ChE) self.Controls.Add(self.ChO) self.Controls.Add(self.ChR) self.Controls.Add(self.ChS) self.Controls.Add(self.ParamS) self.Controls.Add(self.ParamR) self.Controls.Add(self.ParamO) self.Controls.Add(self.ParamF) self.Controls.Add(self.ParamE) self.Controls.Add(self.ParamAnetstat) self.Controls.Add(self.GrupaNET) #Wyswietlacz# self.Controls.Add(self.Wyswietlacz) #Piata grupa# self.Controls.Add(button4) self.Controls.Add(self.ChFlushdns) self.Controls.Add(self.ChDisplaydns) self.Controls.Add(self.ChRenew) self.Controls.Add(self.ChRelease) self.Controls.Add(self.ChAll) self.Controls.Add(self.ChPod) self.Controls.Add(self.ParamFlushdns) self.Controls.Add(self.ParamDisplaydns) self.Controls.Add(self.ParamRenew) self.Controls.Add(self.ParamRelease) self.Controls.Add(self.ParamALL) self.Controls.Add(self.ParamPodst) self.Controls.Add(self.ipconfig)
def __init__(self): self.Text = 'Player' self.Size = Size(350, 280) mainMenu = MainMenu() filem = mainMenu.MenuItems.Add("&File") playm = mainMenu.MenuItems.Add("&Play") view = mainMenu.MenuItems.Add("&View") tools = mainMenu.MenuItems.Add("&Tools") favourites = mainMenu.MenuItems.Add("&Favourites") help = mainMenu.MenuItems.Add("&Help") filem.MenuItems.Add(MenuItem("E&xit", self.OnExit, Shortcut.CtrlX)) self.Menu = mainMenu panel = Panel() panel.Parent = self panel.BackColor = Color.Black panel.Dock = DockStyle.Fill buttonPanel = Panel() buttonPanel.Parent = self buttonPanel.Height = 40 buttonPanel.Dock = DockStyle.Bottom pause = Button() pause.FlatStyle = FlatStyle.Popup pause.Parent = buttonPanel pause.Location = Point(5, 10) pause.Size = Size(25, 25) pause.Image = Bitmap("pause.png") play = Button() play.FlatStyle = FlatStyle.Popup play.Parent = buttonPanel play.Location = Point(35, 10) play.Size = Size(25, 25) play.Image = Bitmap("play.png") forward = Button() forward.FlatStyle = FlatStyle.Popup forward.Parent = buttonPanel forward.Location = Point(80, 10) forward.Size = Size(25, 25) forward.Image = Bitmap("forward.png") backward = Button() backward.FlatStyle = FlatStyle.Popup backward.Parent = buttonPanel backward.Location = Point(110, 10) backward.Size = Size(25, 25) backward.Image = Bitmap("backward.png") tb = TrackBar() tb.Parent = buttonPanel tb.TickStyle = TickStyle.None tb.Size = Size(150, 25) tb.Location = Point(200, 10) tb.Anchor = AnchorStyles.Right audio = Button() audio.FlatStyle = FlatStyle.Popup audio.Parent = buttonPanel audio.Size = Size(25, 25) audio.Image = Bitmap("audio.png") audio.Location = Point(170, 10) audio.Anchor = AnchorStyles.Right sb = StatusBar() sb.Parent = self sb.Text = "Ready" self.CenterToScreen()
def __build_detailstab(self): ''' builds and returns the "Details" Tab for the TabControl ''' tabpage = TabPage() tabpage.Text = i18n.get("ConfigFormDetailsTab") tabpage.Name = "details" # 1. --- a description label for this tabpage label = Label() label.UseMnemonic = False label.AutoSize = True label.Location = Point(14, 35) label.Size = Size(299, 17) label.Text = i18n.get("ConfigFormDetailsText") # 2. --- the 'select all' button checkall_button = Button() checkall_button.Click += self.__fired_checkall checkall_button.Location = Point(280, 107) checkall_button.Size = Size(100, 23) checkall_button.Text = i18n.get("ConfigFormDetailsAll") # 3. --- the 'deselect all' button uncheckall_button = Button() uncheckall_button.Click += self.__fired_uncheckall uncheckall_button.Location = Point(280, 138) uncheckall_button.Size = Size(100, 23) uncheckall_button.Text = i18n.get("ConfigFormDetailsNone") # 4. --- build the update checklist (contains all the 'data' checkboxes) self.__update_checklist = CheckedListBox() self.__update_checklist.CheckOnClick = True self.__update_checklist.ColumnWidth = 125 self.__update_checklist.ThreeDCheckBoxes = True self.__update_checklist.Location = Point(15, 65) self.__update_checklist.MultiColumn = True self.__update_checklist.SelectionMode = SelectionMode.One self.__update_checklist.Size = Size(260, 170) self.__update_checklist.ItemCheck += self.__fired_update_gui self.__update_checklist.Items.Add(ConfigForm.__SERIES_CB) self.__update_checklist.Items.Add(ConfigForm.__VOLUME_CB) self.__update_checklist.Items.Add(ConfigForm.__NUMBER_CB) self.__update_checklist.Items.Add(ConfigForm.__TITLE_CB) self.__update_checklist.Items.Add(ConfigForm.__PUBLISHED_CB) self.__update_checklist.Items.Add(ConfigForm.__RELEASED_CB) self.__update_checklist.Items.Add(ConfigForm.__CROSSOVERS_CB) self.__update_checklist.Items.Add(ConfigForm.__PUBLISHER_CB) self.__update_checklist.Items.Add(ConfigForm.__IMPRINT_CB) self.__update_checklist.Items.Add(ConfigForm.__WRITER_CB) self.__update_checklist.Items.Add(ConfigForm.__PENCILLER_CB) self.__update_checklist.Items.Add(ConfigForm.__INKER_CB) self.__update_checklist.Items.Add(ConfigForm.__COLORIST_CB) self.__update_checklist.Items.Add(ConfigForm.__LETTERER_CB) self.__update_checklist.Items.Add(ConfigForm.__COVER_ARTIST_CB) self.__update_checklist.Items.Add(ConfigForm.__EDITOR_CB) self.__update_checklist.Items.Add(ConfigForm.__SUMMARY_CB) self.__update_checklist.Items.Add(ConfigForm.__CHARACTERS_CB) self.__update_checklist.Items.Add(ConfigForm.__TEAMS_CB) self.__update_checklist.Items.Add(ConfigForm.__LOCATIONS_CB) self.__update_checklist.Items.Add(ConfigForm.__WEBPAGE_CB) # 5. --- add 'em all to this tabpage tabpage.Controls.Add(label) tabpage.Controls.Add(checkall_button) tabpage.Controls.Add(uncheckall_button) tabpage.Controls.Add(self.__update_checklist) return tabpage