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_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_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_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_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