Example #1
0
def create_versions_message():
    return "\n".join([
        "Timeline version: %s" % get_full_version(),
        "System version: %s" % ", ".join(platform.uname()),
        "Python version: %s" % python_version.replace("\n", ""),
        "wxPython version: %s" % wx.version(),
    ])
Example #2
0
 def _write_timeline(self, xmlfile):
     write_simple_tag(xmlfile, "version", get_full_version(), INDENT1)
     write_simple_tag(xmlfile, "timetype", self.db.get_time_type().get_name(), INDENT1)
     if len(self.db.get_all_eras()) > 0:
         self._write_eras(xmlfile)
     self._write_categories(xmlfile)
     self._write_events(xmlfile)
     self._write_view(xmlfile)
     self._write_now_value(xmlfile)
Example #3
0
def display_about_dialog(args, *kwargs):
    info = wx.adv.AboutDialogInfo()
    info.Name = APPLICATION_NAME
    info.Version = get_full_version()
    info.Copyright = COPYRIGHT_TEXT
    info.Description = APPLICATION_DESCRIPTION
    info.WebSite = (WEBSITE, "%s Website" % APPLICATION_NAME)
    info.Developers = DEVELOPERS
    info.Translators = TRANSLATORS
    info.Artists = ARTISTS
    info.License = LICENSE
    wx.adv.AboutBox(info)
Example #4
0
 def __init__(self):
     version_string = "%prog " + get_full_version()
     self.option_parser = OptionParser(
         usage="%prog [options] [filename]",
         version=version_string)
     self.option_parser.add_option(
         "-c", "--config-file", dest="config_file_path", default=None,
         help="Path to config file")
     self.option_parser.add_option(
         "--debug",
         default=False, action="store_true",
         help="Run Timeline with extra debug output")
Example #5
0
def display_about_dialog(args, *kwargs):
    info = wx.AboutDialogInfo()
    info.Name = APPLICATION_NAME
    info.Version = get_full_version()
    info.Copyright = COPYRIGHT_TEXT
    info.Description = APPLICATION_DESCRIPTION
    info.WebSite = (WEBSITE, "%s Website" % APPLICATION_NAME)
    info.Developers = DEVELOPERS
    info.Translators = TRANSLATORS
    info.Artists = ARTISTS
    info.License = LICENSE
    wx.AboutBox(info)
Example #6
0
 def __init__(self):
     version_string = "%prog " + get_full_version()
     self.option_parser = OptionParser(usage="%prog [options] [filename]",
                                       version=version_string)
     self.option_parser.add_option("-c",
                                   "--config-file",
                                   dest="config_file_path",
                                   default=None,
                                   help="Path to config file")
     self.option_parser.add_option(
         "--debug",
         default=False,
         action="store_true",
         help="Run Timeline with extra debug output")
Example #7
0
 def _create_version_string(self):
     return "%prog " + get_full_version()