def OnMenuAbout(self, event): # wxGlade: MainFrame.<event_handler> about = About() about.read(pathToResources + "/about.txt") info = wx.AboutDialogInfo() info.SetName(about.getName()) info.SetVersion(about.getVersion()) info.SetDescription(about.getDescription()) info.SetCopyright(about.getAuthor()) wx.AboutBox(info)
def __init__(self): pathToResources = "../resources" pathToSrc = "../src" # Resources of the setup script self.resources = [] # Resource files to add to bin folder. self.__addToResources(pathToResources) # Doc files to add to bin folder. self.__addToResources("../doc/html") # script file self.script = pathToSrc + "/StartNewModule.py" self.icon_resource = pathToResources + "/startnewmodule.ico" # options about = About() about.read( pathToResources + "/about.txt") self.name = about.getName() self.version = about.getVersion() self.description = about.getDescription() self.author = about.getAuthor()
def __init__(self): pathToResources = "../resources/" pathToSrc = "../src/" # Resources of the setup script self.resources = [] # Files at root level self.__addToResources("../readme.txt", ".") self.__addToResources("../license.txt", ".") # Resource files to add to bin folder. self.__addToResources(pathToResources, "resources") # Doc files to add to bin folder. self.__addToResources("../doc/html/", "doc/html") self.__addToResources("../doc/html/search/", "doc/html/search") # script self.script = pathToSrc + "csnGUI.py" self.icon_resource = pathToResources + "Laticauda_colubrina.ico" # options about = About() about.read( pathToResources + "about.txt") self.name = about.getName() self.version = about.getVersion() self.description = about.getDescription() self.author = about.getAuthor()
def __init__(self): pathToResources = "../resources/" pathToSrc = "../src/" # Resources of the setup script self.resources = [] # Files at root level self.__addToResources("../readme.md", ".") self.__addToResources("../license.txt", ".") # Resource files to add to bin folder. self.__addToResources(pathToResources, "resources") # Doc files to add to bin folder. self.__addToResources("../doc/html/", "doc/html") self.__addToResources("../doc/html/search/", "doc/html/search") # script self.script = pathToSrc + "csnGUI.py" self.icon_resource = pathToResources + "Laticauda_colubrina.ico" # options about = About() about.read( pathToResources + "about.txt") self.name = about.getName() self.version = about.getVersion() self.description = about.getDescription() self.author = about.getAuthor()
def getVersion(): about = About() about.read(csnUtility.GetRootOfCSnake() + "/resources/about.txt") return about.getVersion()