def __init__(self, *args, **kwds): # First we create and fill the info object parent = args[0] info = wx.AboutDialogInfo() info.Name = "pyspread" info.Version = config["version"] info.Copyright = "(C) Martin Manns" info.Description = wordwrap( _("A non-traditional Python spreadsheet application.\nPyspread is " "based on and written in the programming language Python."), 350, wx.ClientDC(parent)) info.WebSite = ("http://manns.github.io/pyspread/", _("Pyspread Web site")) info.Developers = ["Martin Manns"] info.DocWriters = ["Martin Manns", "Bosko Markovic"] info.Translators = ["Joe Hansen", "Mark Haanen", "Yuri Chornoivan", u"Mario Blättermann", "Christian Kirbach", "Martin Manns", "Andreas Noteng"] license_file = open(get_program_path() + "/COPYING", "r") license_text = license_file.read() license_file.close() info.License = wordwrap(license_text, 500, wx.ClientDC(parent)) # Then we call wx.AboutBox giving it that info object wx.AboutBox(info)
def __init__(self, *args, **kwds): # First we create and fill the info object parent = args[0] info = wx.AboutDialogInfo() info.Name = "pyspread" info.Version = config["version"] info.Copyright = "(C) Martin Manns" info.Description = wordwrap( _("A non-traditional Python spreadsheet application.\nPyspread is " "based on and written in the programming language Python."), 350, wx.ClientDC(parent)) info.WebSite = ("http://manns.github.io/pyspread/", _("Pyspread Web site")) info.Developers = ["Martin Manns", "Jason Sexauer", "Vova Kolobok", "mgunyho"] info.DocWriters = ["Martin Manns", "Bosko Markovic"] info.Translators = ["Joe Hansen", "Mark Haanen", "Yuri Chornoivan", u"Mario Blättermann", "Christian Kirbach", "Martin Manns", "Andreas Noteng", "Enrico Nicoletto", u"Frédéric Marchal", "Philipp Thomas", "Rafael Fontenelle"] license_file = open(get_program_path() + os.sep + "COPYING", "r") license_text = license_file.read() license_file.close() info.License = wordwrap(license_text, 500, wx.ClientDC(parent)) # Then we call wx.AboutBox giving it that info object wx.AboutBox(info)
def get_paths(self, theme, icon_size): """Returns tuple of theme, icon, action and toggle paths""" _size_str = "x".join(map(str, icon_size)) theme_path = get_program_path() + "share/icons/" icon_path = theme_path + theme + "/" + _size_str + "/" action_path = icon_path + "actions/" toggle_path = icon_path + "toggles/" return theme_path, icon_path, action_path, toggle_path
def get_paths(self, theme, icon_size): """Returns tuple of theme, icon, action and toggle paths""" _size_str = "x".join(map(str, icon_size)) theme_path = get_program_path() + "share" + os.sep + "icons" + os.sep icon_path = theme_path + theme + os.sep + _size_str + os.sep action_path = icon_path + "actions" + os.sep toggle_path = icon_path + "toggles" + os.sep return theme_path, icon_path, action_path, toggle_path
def __init__(self, theme, icon_size): wx.ArtProvider.__init__(self) _size_str = "x".join(map(str, icon_size)) _theme_path = get_program_path() + "share/icons/" _icon_path = _theme_path + theme + "/" + _size_str + "/" _action_path = _icon_path + "actions/" _toggle_path = _icon_path + "toggles/" self.extra_icons = { "PyspreadLogo": _theme_path + "pyspread.png", "EditCopyRes": _action_path + "edit-copy-results.png", "FormatTextBold": _action_path + "format-text-bold.png", "FormatTextItalic": _action_path + "format-text-italic.png", "FormatTextUnderline": _action_path + "format-text-underline.png", "FormatTextStrikethrough": _action_path + "format-text-strikethrough.png", "JustifyRight": _action_path + "format-justify-right.png", "JustifyCenter": _action_path + "format-justify-center.png", "JustifyLeft": _action_path + "format-justify-left.png", "AlignTop": _action_path + "format-text-aligntop.png", "AlignCenter": _action_path + "format-text-aligncenter.png", "AlignBottom": _action_path + "format-text-alignbottom.png", "Freeze": _action_path + "frozen_small.png", "Merge": _action_path + "format-merge-table-cells.png", "AllBorders": _toggle_path + "border_all.xpm", "LeftBorders": _toggle_path + "border_left.xpm", "RightBorders": _toggle_path + "border_right.xpm", "TopBorders": _toggle_path + "border_top.xpm", "BottomBorders": _toggle_path + "border_bottom.xpm", "InsideBorders": _toggle_path + "border_inside.xpm", "OutsideBorders": _toggle_path + "border_outside.xpm", "TopBottomBorders": _toggle_path + "border_top_n_bottom.xpm", "SearchCaseSensitive": _toggle_path + "aA.png", "SearchRegexp": _toggle_path + "regex.png", "SearchWholeword": _toggle_path + "wholeword.png", "InsertChart": _action_path + "chart_line.png", }