# Path: pythics/settings.py
# _TRY_PYSIDE = True


import getopt
import inspect
import logging
import os, os.path
import multiprocessing
import pickle
import sys, traceback
    import PySide2.QtCore as _QtCore
    import PySide2.QtGui as _QtGui
    import PySide2.QtWidgets as _QtWidgets
    import PySide2.QtPrintSupport as _QtPrintSupport
    import PyQt5.QtCore as _QtCore
    import PyQt5.QtGui as _QtGui
    import PyQt5.QtWidgets as _QtWidgets
    import PyQt5.QtPrintSupport as _QtPrintSupport
import pythics.html
import pythics.libcontrol
import pythics.parent
from pythics.settings import _TRY_PYSIDE
        self.setCentralWidget(self.tab_frame)

    def redraw(self, index):
        if self.tab_frame.widget(index) == None:
            title = 'Pythics'
        else:
            title = self.tab_frame.widget(index).title
            self.tab_frame.widget(index).redraw()
        self.setWindowTitle(title)

    def get_active_tab(self):
        return self.tab_frame.currentWidget()

    def close_tab(self, i):
        if self.confirm_close():
            self.tab_frame.widget(i).close()
            self.tab_frame.removeTab(i)
        if self.tab_frame.count() == 0:
            self.disable_menu_items()

    def get_open_filename(self, name_filter='*.*', directory='', title='Select a file to open'):
        filename = QtWidgets.QFileDialog.getOpenFileName(self, title, directory, name_filter)[0]
        if filename == '':
            raise IOError('No file selected.')
        return filename

    def get_save_filename(self, name_filter='*.*', directory='', title='Select a filename for saving'):
        filename = QtWidgets.QFileDialog.getSaveFileName(self, title, directory, name_filter)[0]
        if filename == '':
            raise IOError('No filename selected.')

# Path: pythics/settings.py
# _TRY_PYSIDE = True


# Path: pythics/start.py
import getopt
import inspect
import logging
import os, os.path
import multiprocessing
import pickle
import sys, traceback
    import PySide2.QtCore as _QtCore
    import PySide2.QtGui as _QtGui
    import PySide2.QtWidgets as _QtWidgets
    import PySide2.QtPrintSupport as _QtPrintSupport
    import PyQt5.QtCore as _QtCore
    import PyQt5.QtGui as _QtGui
    import PyQt5.QtWidgets as _QtWidgets
    import PyQt5.QtPrintSupport as _QtPrintSupport
import pythics.html
import pythics.libcontrol
import pythics.parent
from pythics.settings import _TRY_PYSIDE

        self.setCentralWidget(self.tab_frame)

    def redraw(self, index):
        if self.tab_frame.widget(index) == None:
            title = 'Pythics'
        else:
            title = self.tab_frame.widget(index).title
            self.tab_frame.widget(index).redraw()
        self.setWindowTitle(title)

    def get_active_tab(self):
        return self.tab_frame.currentWidget()

    def close_tab(self, i):
        if self.confirm_close():
            self.tab_frame.widget(i).close()
            self.tab_frame.removeTab(i)
        if self.tab_frame.count() == 0:
            self.disable_menu_items()

    def get_open_filename(self, name_filter='*.*', directory='', title='Select a file to open'):
        filename = QtWidgets.QFileDialog.getOpenFileName(self, title, directory, name_filter)[0]
        if filename == '':
            raise IOError('No file selected.')
        return filename

    def get_save_filename(self, name_filter='*.*', directory='', title='Select a filename for saving'):
        filename = QtWidgets.QFileDialog.getSaveFileName(self, title, directory, name_filter)[0]
        if filename == '':
            raise IOError('No filename selected.')

        return filename