当前位置: 首页>>代码示例>>Python>>正文


Python Button.Size方法代码示例

本文整理汇总了Python中System.Windows.Forms.Button.Size方法的典型用法代码示例。如果您正苦于以下问题:Python Button.Size方法的具体用法?Python Button.Size怎么用?Python Button.Size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.Button的用法示例。


在下文中一共展示了Button.Size方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __build_restore_button

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:11,代码来源:configform.py

示例2: __build_okbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
    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
开发者ID:IPyandy,项目名称:comic-vine-scraper,代码行数:11,代码来源:issueform.py

示例3: __build_okbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:11,代码来源:configform.py

示例4: __build_skipbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:11,代码来源:seriesform.py

示例5: __build_skipbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
    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
开发者ID:IPyandy,项目名称:comic-vine-scraper,代码行数:11,代码来源:issueform.py

示例6: __build_okbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:11,代码来源:seriesform.py

示例7: __build_cancel_button

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:11,代码来源:configform.py

示例8: __build_backbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
    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
开发者ID:IPyandy,项目名称:comic-vine-scraper,代码行数:11,代码来源:issueform.py

示例9: __build_cancelbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [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

示例10: __build_okbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [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

示例11: __build_cancelbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [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

示例12: __build_settingsbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [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

示例13: __build_issuesbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:12,代码来源:seriesform.py

示例14: __build_searchbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [as 别名]
 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
开发者ID:Blackbird88,项目名称:comic-vine-scraper,代码行数:12,代码来源:seriesform.py

示例15: __build_okbutton

# 需要导入模块: from System.Windows.Forms import Button [as 别名]
# 或者: from System.Windows.Forms.Button import Size [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


注:本文中的System.Windows.Forms.Button.Size方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。