本文整理汇总了Python中System.Windows.Forms.Button.UseVisualStyleBackColor方法的典型用法代码示例。如果您正苦于以下问题:Python Button.UseVisualStyleBackColor方法的具体用法?Python Button.UseVisualStyleBackColor怎么用?Python Button.UseVisualStyleBackColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Button
的用法示例。
在下文中一共展示了Button.UseVisualStyleBackColor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __build_cancelbutton
# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import UseVisualStyleBackColor [as 别名]
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
示例2: __build_okbutton
# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import UseVisualStyleBackColor [as 别名]
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
示例3: __build_okbutton
# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import UseVisualStyleBackColor [as 别名]
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
示例4: __build_cancelbutton
# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import UseVisualStyleBackColor [as 别名]
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
示例5: __build_settingsbutton
# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import UseVisualStyleBackColor [as 别名]
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
示例6: __build_prevbutton
# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import UseVisualStyleBackColor [as 别名]
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