class GUIConstants: def __init__(self): self.info = AboutDialogInfo() self.info.SetName("Ctrax") self.info.SetVersion(__version__) self.info.SetCopyright("2007-2017, Caltech ethomics project") self.info.SetDescription("""The Caltech Multiple Fly Tracker Kristin Branson et al. http://ctrax.sourceforge.net/ http://dx.doi.org/10.1038/nmeth.1328 Distributed under the GNU General Public License (http://www.gnu.org/licenses/gpl.html) with ABSOLUTELY NO WARRANTY. This project has been supported by the NIH and the HHMI.""") self.TRACK_START = "Start Tracking" self.TRACK_STOP = "Stop Tracking" self.TRACK_PLAY = "Start Playback" self.TRACK_PAUSE = "Stop Playback" params.version = __version__
def __init__(self, parent): self.parent = parent info = AboutDialogInfo() info.Name = data.app_name info.Version = data.version info.Copyright = data.copyright info.Description = wordwrap(data.description, 350, ClientDC(parent)) info.WebSite = data.website info.Developers = data.developers info.License = wordwrap(data.license, 500, ClientDC(parent)) # Then we call wx.AboutBox giving it that info object AboutBox(info)
def __init__(self, parent): self.parent = parent info = AboutDialogInfo() info.Name = data.app_name info.Version = data.version info.Copyright = data.copyright info.Description = wordwrap(data.description, 350, ClientDC(parent)) info.WebSite = data.website info.Developers = data.developers info.License = wordwrap(data.license, 500, ClientDC(parent)) # Then we call wx.AboutBox giving it that info object AboutBox(info) #self.ShowModal()