def __init__(self, settings_ini: (str, SettingsINI), parent=None): """ :param settings_ini: (str, SettingsINI) can be a settings_ini file path or configured SettingsINI object. """ self.df_manager = DataFrameModelManager() QtGui.QMainWindow.__init__(self, parent=parent) self.setupUi(self) self.icons = Icons() self.dialog_settings = SettingsDialog(settings=settings_ini) self.dialog_merge_purge = MergePurgeDialog(self.df_manager) self.dialog_export = DataFrameModelExportDialog(self.df_manager, parent=self) self.dialog_import = DataFrameModelImportDialog(self.df_manager, parent=self) self.dialog_new_folder = DirectoryPathCreateDialog(self.treeView, parent=self) self.dialog_cloud = None self.key_delete = QtGui.QShortcut(self) self.key_enter = QtGui.QShortcut(self) self.key_zip = QtGui.QShortcut(self) self.key_rename = QtGui.QShortcut(self) self.connect_window_title() self.connect_actions() self.connect_treeview() self.connect_icons() self.connect_settings_dialog() self.connect_import_dialog() self.connect_export_dialog() self.connect_cloud_dialog() self.current_model = None
def __init__(self, main_controller: MainController, configure=True): QtGui.QMainWindow.__init__(self) self.control = main_controller self.setupUi(self) self.dialog_cloud = None self.window_sql = DatabasesMainWindow(parent=self) self.window_ftp = FtpMainWindow(main_controller, parent=self) self.key_enter = QtGui.QShortcut(self) self.key_delete = QtGui.QShortcut(self) if configure: self.configure()
def __init__(self, *args, df_manager: DataFrameModelManager = None, connection_manager: AlchemyConnectionManager = None, **kwargs): QtGui.QMainWindow.__init__(self, *args, **kwargs) self.bookmarks = BookmarkManager('sql_bookmark_manager') self._last_df_model = None self._last_text_dir = '' self._last_text_path = '' self.con_manager = connection_manager self.df_manager = df_manager self._dialog_add_con = None self._dialog_import = None self._key_enter = QtGui.QShortcut(self) self._key_ctrl_t = QtGui.QShortcut(self) self.configure()