當前位置: 首頁>>代碼示例>>Python>>正文


Python Button.UseVisualStyleBackColor方法代碼示例

本文整理匯總了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
開發者ID:Blackbird88,項目名稱:comic-vine-scraper,代碼行數:12,代碼來源:searchform.py

示例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
開發者ID:cbanack,項目名稱:comic-vine-scraper,代碼行數:12,代碼來源:finishform.py

示例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
開發者ID:Blackbird88,項目名稱:comic-vine-scraper,代碼行數:12,代碼來源:welcomeform.py

示例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
開發者ID:Blackbird88,項目名稱:comic-vine-scraper,代碼行數:12,代碼來源:welcomeform.py

示例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
開發者ID:Blackbird88,項目名稱:comic-vine-scraper,代碼行數:12,代碼來源:welcomeform.py

示例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
開發者ID:cbanack,項目名稱:comic-vine-scraper,代碼行數:14,代碼來源:issuecoverpanel.py


注:本文中的System.Windows.Forms.Button.UseVisualStyleBackColor方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。