本文整理汇总了Python中configuration.Configuration.update_publisher_b方法的典型用法代码示例。如果您正苦于以下问题:Python Configuration.update_publisher_b方法的具体用法?Python Configuration.update_publisher_b怎么用?Python Configuration.update_publisher_b使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类configuration.Configuration
的用法示例。
在下文中一共展示了Configuration.update_publisher_b方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __get_configuration
# 需要导入模块: from configuration import Configuration [as 别名]
# 或者: from configuration.Configuration import update_publisher_b [as 别名]
def __get_configuration(self):
'''
Returns a Configuration object the describes the current state of all the
gui components on this ConfigForm.
'''
def is_checked( checkbox ):
return self.__update_checklist.GetItemChecked( \
self.__update_checklist.Items.IndexOf(checkbox) )
config = Configuration()
# 1. --- first get the parts from the checklist box (data tab)
config.update_series_b = is_checked(ConfigForm.__SERIES_CB)
config.update_number_b = is_checked(ConfigForm.__NUMBER_CB)
config.update_published_b = is_checked(ConfigForm.__PUBLISHED_CB)
config.update_released_b = is_checked(ConfigForm.__RELEASED_CB)
config.update_title_b = is_checked(ConfigForm.__TITLE_CB)
config.update_crossovers_b = is_checked(ConfigForm.__CROSSOVERS_CB)
config.update_writer_b = is_checked(ConfigForm.__WRITER_CB)
config.update_penciller_b = is_checked(ConfigForm.__PENCILLER_CB)
config.update_inker_b = is_checked(ConfigForm.__INKER_CB)
config.update_cover_artist_b = is_checked(ConfigForm.__COVER_ARTIST_CB)
config.update_colorist_b = is_checked(ConfigForm.__COLORIST_CB)
config.update_letterer_b = is_checked(ConfigForm.__LETTERER_CB)
config.update_editor_b = is_checked(ConfigForm.__EDITOR_CB)
config.update_summary_b = is_checked(ConfigForm.__SUMMARY_CB)
config.update_imprint_b = is_checked(ConfigForm.__IMPRINT_CB)
config.update_publisher_b = is_checked(ConfigForm.__PUBLISHER_CB)
config.update_volume_b = is_checked(ConfigForm.__VOLUME_CB)
config.update_characters_b = is_checked(ConfigForm.__CHARACTERS_CB)
config.update_teams_b = is_checked(ConfigForm.__TEAMS_CB)
config.update_locations_b = is_checked(ConfigForm.__LOCATIONS_CB)
config.update_webpage_b = is_checked(ConfigForm.__WEBPAGE_CB)
# 2. --- then get the parts from the other checkboxes (options tab)
config.ow_existing_b = self.__ow_existing_cb.Checked
config.convert_imprints_b = self.__convert_imprints_cb.Checked
config.autochoose_series_b = self.__autochoose_series_cb.Checked
config.confirm_issue_b = self.__confirm_issue_cb.Checked
config.ignore_blanks_b = self.__ignore_blanks_cb.Checked
config.download_thumbs_b = self.__download_thumbs_cb.Checked
config.preserve_thumbs_b = self.__preserve_thumbs_cb.Checked
config.fast_rescrape_b = self.__fast_rescrape_cb.Checked
config.rescrape_notes_b = self.__rescrape_notes_cb.Checked
config.rescrape_tags_b = self.__rescrape_tags_cb.Checked
config.summary_dialog_b = self.__summary_dialog_cb.Checked
# 3. --- then get the string out of the advanced settings textbox
config.advanced_settings_s = self.__advanced_tbox.Text
config.api_key_s = self.__api_key_tbox.Text.strip()
return config