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


Python WizardPage.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, 'Schemata Selection')

        self._ui_created = False
        self.main.add_wizard_page(self,  'SourceTarget', 'Schemata Selection')

        optionspanel = mforms.newPanel(mforms.TitledBoxPanel)
        optionspanel.set_title('Schema Name Mapping Method')
        optionsbox = mforms.newBox(False)
        optionsbox.set_padding(8)
        optionsbox.set_spacing(8)
        
        optionsbox.add(mforms.newLabel('Choose how the reverse engineered schemata and objects should be mapped.\n'), False)

        options = [ 'Keep schemata as they are: Catalog.Schema.Table -> Schema.Table',
                    'Only one schema: Catalog.Schema.Table -> Catalog.Table',
                    'Only one schema, keep current schema names as a prefix: Catalog.Schema.Table -> Catalog.Schema_Table',
                  ]
        rid = mforms.RadioButton.new_id()
        self.options = []
        for opt in options:
            radio_button = mforms.newRadioButton(rid)
            radio_button.set_text(opt)
            optionsbox.add(radio_button, False)
            self.options.append(radio_button)
        self.options[1].set_active(True)

        optionspanel.add(optionsbox)
        self._optionspanel = optionspanel
        #self._advanced_shown = False
        #self._optionspanel.show(False)
        self.content.add_end(optionspanel, False)
开发者ID:verflucht,项目名称:unlock_repo_feria,代码行数:34,代码来源:migration_schema_selection.py

示例2: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, "Manual Editing", wide=True)

        self.main.add_wizard_page(self, "ObjectMigration", "Manual Editing")
        self._object_dict = {}
        self._source_objects_with_errors = set()
        self.error_count, self.warning_count = 0, 0
开发者ID:pk-codebox-evo,项目名称:mysql-workbench,代码行数:9,代码来源:migration_object_editing.py

示例3: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, 'Schema Mappings')

        self.main.add_wizard_page(self, 'OBJECT MIGRATION', 'Schema Mappings')

        self.schemata = None
        self.rid = mforms.RadioButton.new_id()
        self.options = []
开发者ID:Roguelazer,项目名称:mysql-workbench,代码行数:10,代码来源:migration_schema_mappings.py

示例4: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, "Source Objects")

        self.main.add_wizard_page(self, "ObjectMigration", "Source Objects")
        self._scrollpanel = None
        
        label = mforms.newLabel("You may select the objects to be migrated in the lists below.\nAll tables will be migrated by default.")
        self.content.add(label, False, True)
开发者ID:verflucht,项目名称:unlock_repo_feria,代码行数:10,代码来源:migration_object_selection.py

示例5: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, owner):
        WizardPage.__init__(self, owner, "Select File to Import", wide=True)

        self.schema_label = mforms.newLabel("Target schema: ")

        self.back_button.set_enabled(False)
        self.ogrinfo_missing = True
        self.ogr2ogr_missing = True
开发者ID:pk-codebox-evo,项目名称:mysql-workbench,代码行数:10,代码来源:sqlide_import_spatial.py

示例6: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, "Migration Report")

        self.main.add_wizard_page(self, "Report", "Migration Report")

        self._report = mforms.newTextBox(mforms.VerticalScrollBar)
        self.content.add(self._report, True, True)
        
        self.next_button.set_text("Finish")
开发者ID:verflucht,项目名称:unlock_repo_feria,代码行数:11,代码来源:migration_summary.py

示例7: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, "Target Creation Options")

        self.main.add_wizard_page(self, "ObjectMigration", "Target Creation Options")

        label = mforms.newLabel("Select options for the creation of the migrated schema in the target\nMySQL server and click [Next >] to execute.")
        self.content.add(label, False, True)

        panel = mforms.newPanel(mforms.TitledBoxPanel)
        panel.set_title("Schema Creation")
        self.content.add(panel, False, True)

        box = mforms.newBox(False)
        panel.add(box)
        box.set_padding(12)

        self._create_db = mforms.newCheckBox()
        self._create_db.set_text("Create schema in target RDBMS")
        box.add(self._create_db, False, True)

        # spacer
        box.add(mforms.newLabel(""), False, True)

        self._create_script = mforms.newCheckBox()
        self._create_script.set_text("Create a SQL script file")
        self._create_script.add_clicked_callback(self._toggle_sql_script)
        box.add(self._create_script, False, True)
        self._file_hbox = mforms.newBox(True)
        self._file_hbox.set_spacing(4)
        self._file_hbox.add(mforms.newLabel("Script File:"), False, True)
        self._create_script_file = mforms.newTextEntry()
        self._create_script_file.set_value(os.path.join(os.path.expanduser('~'), 'migration_script.sql'))
        self._file_hbox.add(self._create_script_file, True, True)
        button = mforms.newButton()
        button.set_text("Browse...")
        button.add_clicked_callback(self._browse_files)
        self._file_hbox.add(button, False, True)
        box.add(self._file_hbox, False, True)

        panel = mforms.newPanel(mforms.TitledBoxPanel)
        panel.set_title("Options")
        self.content.add(panel, False, True)

        box = mforms.newBox(False)
        panel.add(box)
        box.set_padding(12)
        box.set_spacing(8)

        self._keep_schema = mforms.newCheckBox()
        self._keep_schema.set_text("Keep schemas if they already exist. Objects that already exist will not be recreated or updated.")
        box.add(self._keep_schema, False, True)

        self._create_db.set_active(True)
        self._toggle_sql_script()
        self._check_file_duplicate = True
开发者ID:alMysql,项目名称:mysql-workbench,代码行数:57,代码来源:migration_schema_creation.py

示例8: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
 def __init__(self, owner):
     WizardPage.__init__(self, owner, "Select output file location")
     if self.main.formats:
         self.active_module = self.main.formats[0] # We set first module as the active one
     else:
         self.active_module = None
     self.unsupported_output_format = False
     self.confirm_file_overwrite = False
     self.radio_opts = []
     self.optbox = None
     self.destination_file_checked = False
开发者ID:Roguelazer,项目名称:mysql-workbench,代码行数:13,代码来源:sqlide_power_export_wizard.py

示例9: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, owner, sql_text):
        WizardPage.__init__(self, owner, 'Review Generated Migration(s)')

        self.save_button = mforms.newButton()
        self.save_button.enable_internal_padding(True)
        self.save_button.set_text('Save Migration(s) to Folder...')
        self.save_button.set_tooltip('Select the folder to save your migration(s) to.')
        self.save_button.add_clicked_callback(self.save_clicked)

        self.sql_text = mforms.newCodeEditor()
        self.sql_text.set_language(mforms.LanguageMySQL)
        self.sql_text.set_text(sql_text)
开发者ID:edencker,项目名称:mysql-workbench-export-laravel-5-migrations,代码行数:14,代码来源:export-laravel-5-migrations.py

示例10: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
 def __init__(self, owner):
     WizardPage.__init__(self, owner, "Configure Import Settings", wide=True)
     
     self.last_analyze_status = False
     self.input_file_type = 'csv'
     self.active_module = self.main.formats[0] # csv
     self.encoding_list = {'cp1250 (windows-1250)':'cp1250', 
                           'latin2 (iso8859-2)':'iso8859_2', 
                           'latin1 (iso8859-1)':'latin_1', 
                           'utf-8':'utf-8', 
                           'utf-16':'utf-16'}
     self.dest_cols = []
     self.column_mapping = []
     self.ds_show_count = 0
     self.df_show_count = 0
     self.opts_mapping = {}
开发者ID:Roguelazer,项目名称:mysql-workbench,代码行数:18,代码来源:sqlide_power_import_wizard.py

示例11: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
 def __init__(self, owner):
     WizardPage.__init__(self, owner, "Configure Import Settings", wide=True)
     
     self.last_analyze_status = False
     self.input_file_type = 'csv'
     self.active_module = self.main.formats[0] # csv
     self.encoding_list = {'cp1250 (windows-1250)':'cp1250', 
                           'latin2 (iso8859-2)':'iso8859_2', 
                           'latin1 (iso8859-1)':'latin_1', 
                           'utf-8':'utf-8', 
                           'utf-16':'utf-16'}
     self.dest_cols = []
     self.column_mapping = []
     self.ds_show_count = 0
     self.df_show_count = 0
     self.opts_mapping = {}
     self.is_server_5_7 = Version.fromgrt(self.main.editor.serverVersion).is_supported_mysql_version_at_least(Version.fromstr("5.7.5"))
开发者ID:pk-codebox-evo,项目名称:mysql-workbench,代码行数:19,代码来源:sqlide_power_import_wizard.py

示例12: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, main):
        WizardPage.__init__(self, main, "Migration Options")

        self.main.add_wizard_page(self, "ObjectMigration", "Migration Options")

        label = mforms.newLabel("Select options for the migration of the source schema/schemata to MySQL.")
        self.content.add(label, False, True)

        panel = mforms.newPanel(mforms.TitledBoxPanel)
        panel.set_title("DBMS Specific Options")
        self.content.add(panel, False, True)

        self._db_options_box = mforms.newBox(False)
        panel.add(self._db_options_box)
        self._db_options_box.set_padding(12)
        self._db_options_box.set_spacing(8)
        self._db_options = []
开发者ID:verflucht,项目名称:unlock_repo_feria,代码行数:19,代码来源:migration_object_migration.py

示例13: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, owner, sql_text):
        WizardPage.__init__(self, owner, 'Review Generated Script')

        self.save_button = mforms.newButton()
        self.save_button.enable_internal_padding(True)
        self.save_button.set_text('Save to File...')
        self.save_button.set_tooltip('Save the text to a new file.')
        self.save_button.add_clicked_callback(self.save_clicked)

        self.copy_button = mforms.newButton()
        self.copy_button.enable_internal_padding(True)
        self.copy_button.set_text('Copy to Clipboard')
        self.copy_button.set_tooltip('Copy the text to the clipboard.')
        self.copy_button.add_clicked_callback(self.copy_clicked)

        self.sql_text = mforms.newCodeEditor()
        self.sql_text.set_language(mforms.LanguageMySQL)
        self.sql_text.set_text(sql_text)
开发者ID:AllanD1,项目名称:mysql-wb-exportsqlite,代码行数:20,代码来源:export_sqlite_grt.py

示例14: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
    def __init__(self, owner):
        WizardPage.__init__(self, owner, "Generate certificates and self-signed keys")

        self.ca_cert = os.path.join(self.main.results_path, "ca-cert.pem").replace('\\', '/')
        self.server_cert = os.path.join(self.main.results_path, "server-cert.pem").replace('\\', '/')
        self.server_key = os.path.join(self.main.results_path, "server-key.pem").replace('\\', '/')
        self.client_cert = os.path.join(self.main.results_path, "client-cert.pem").replace('\\', '/')
        self.client_key = os.path.join(self.main.results_path, "client-key.pem").replace('\\', '/')

        self.table = mforms.newTable()
        self.table.set_padding(12)
        self.table.set_column_count(3)
        self.table.set_row_count(7)

        self.table.set_row_spacing(8)
        self.table.set_column_spacing(4)

        row, self.country_code = self.add_label_row(0, "Country:", "2 letter country code (eg, US)")
        row, self.state_name = self.add_label_row(row, "State or Province:", "Full state or province name")
        row, self.locality_name = self.add_label_row(row, "Locality:", "eg, city")
        row, self.org_name = self.add_label_row(row, "Organization:", "eg, company")
        row, self.org_unit = self.add_label_row(row, "Org. Unit:", "eg, section, department")
        row, self.email_address = self.add_label_row(row, "Email Address:", "")
        row, self.common_name = self.add_label_row(row, "Common:", "eg, put the FQDN of the server\nto allow server address validation")

        message = "Now you must specify the parameters to use in the certificates and self-signed key generation.\n"
        message += "This may include some data refering to youself and/or the company you work for. All fields are optional."
        
        self.parameters_box = mforms.newBox(False)
        self.parameters_box.set_padding(20)
        self.parameters_box.set_spacing(20)

        self.parameters_label = mforms.newLabel(message)
        
        self.parameters_panel = mforms.newPanel(mforms.TitledBoxPanel)
        self.parameters_panel.set_title("Optional Parameters")
        self.parameters_panel.add(self.table)
        
        self.parameters_box.add(self.parameters_label, False, False)
        self.parameters_box.add(self.parameters_panel, False, False)

        self.default_label = mforms.newLabel("The wizard is ready to generate the files for you. Click 'Next >' to generate \nthe certificates and self-signed key files...")
开发者ID:alMysql,项目名称:mysql-workbench,代码行数:44,代码来源:wb_utils_grt.py

示例15: __init__

# 需要导入模块: from workbench.ui import WizardPage [as 别名]
# 或者: from workbench.ui.WizardPage import __init__ [as 别名]
 def __init__(self, owner):
     WizardPage.__init__(self, owner, "Import Options", wide=True)
     self.layer_name = None
     self.column_list = []
开发者ID:alMysql,项目名称:mysql-workbench,代码行数:6,代码来源:sqlide_import_spatial.py


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