示例#1
0
    def run(self, params):
        assert self._application.mainWindow is not None

        version = outwiker.getVersionStr()
        dlg = AboutDialog(version, self._application.mainWindow)
        dlg.ShowModal()
        dlg.Destroy()
示例#2
0
def print_info():
    logger.debug('OutWiker version: {}'.format(outwiker.getVersionStr()))
    logger.debug('Current OutWiker API version: {}.{}'.format(
        outwiker.__api_version__[0], outwiker.__api_version__[1]))
    logger.debug('Python version: {}'.format(sys.version))
    logger.debug('wxPython version: {}'.format(wx.__version__))
    logger.debug(u'Current working directory: {}'.format(os.getcwd()))
    for n, dirname in enumerate(getSpecialDirList(u'')):
        logger.debug(u'Special directory [{}]: {}'.format(n, dirname))
示例#3
0
def print_info():
    logger.debug('OutWiker version: {}'.format(outwiker.getVersionStr()))
    logger.debug('Current OutWiker API version: {}.{}'.format(
        outwiker.__api_version__[0], outwiker.__api_version__[1]))
    logger.debug('Python version: {}'.format(sys.version))
    logger.debug('wxPython version: {}'.format(wx.__version__))
    logger.debug('Current locale: {}'.format(locale.setlocale(locale.LC_ALL, None)))
    logger.debug('Decimal point: "{}"'.format(locale.localeconv()['decimal_point']))
    logger.debug('Current working directory: {}'.format(os.getcwd()))
    for n, dirname in enumerate(getSpecialDirList('')):
        logger.debug('Special directory [{}]: {}'.format(n, dirname))
示例#4
0
    def processConsole(self):
        """
        Выполнить команды командной строки до создания интерфейса
        """
        # Вывод справки
        if self._commandLine.help:
            print(self._commandLine.format_help())
            raise StarterExit

        # Вывод информации о версии
        if self._commandLine.version:
            print(r"""OutWiker {ver}""".format(ver=outwiker.getVersionStr()))
            raise StarterExit
示例#5
0
    def __init__(self):
        self._description = 'OutWiker {ver}. Crossplatform program to keep your notes in a tree.'.format(
            ver=outwiker.getVersionStr())

        self._parser = self._createParser()
        self._namespace = None