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(), ])
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)
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)
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")
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)
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")
def _create_version_string(self): return "%prog " + get_full_version()