Example #1
0
 def OnAbout(self, e):
     info = wx.AboutDialogInfo()
     info.Name = "Rurple NG"
     info.Version = "0.5"
     info.Copyright = "Copyright 2009 André Roberge and Paul Crowley"
     info.Description = wx.lib.wordwrap.wordwrap(
         "A friendly learning environment for beginners to programming."
         "To get started, have a look at the manual",
         350, wx.ClientDC(self))
     info.WebSite = (share.path("html", "index.html"), "Rurple NG manual")
     info.Developers = ["André Roberge", "Paul Crowley"]
     with open(share.path("COPYING.txt")) as f:
         #info.License = wx.lib.wordwrap.wordwrap(
         #    f.read(), 500, wx.ClientDC(self))
         info.License = f.read().replace("\f", "")
     wx.AboutBox(info)
Example #2
0
 def OnAbout(self, e):
     info = wx.AboutDialogInfo()
     info.Name = "Rurple NG"
     info.Version = "0.5"
     info.Copyright = "Copyright 2009 André Roberge and Paul Crowley"
     info.Description = wx.lib.wordwrap.wordwrap(
         "A friendly learning environment for beginners to programming."
         "To get started, have a look at the manual", 350,
         wx.ClientDC(self))
     info.WebSite = (share.path("html", "index.html"), "Rurple NG manual")
     info.Developers = ["André Roberge", "Paul Crowley"]
     with open(share.path("COPYING.txt")) as f:
         #info.License = wx.lib.wordwrap.wordwrap(
         #    f.read(), 500, wx.ClientDC(self))
         info.License = f.read().replace("\f", "")
     wx.AboutBox(info)
Example #3
0
 def OnOpenSample(self, e):
     if not self._openGuard() or not self._modGuard():
         return
     dlg = wx.FileDialog(self._ui,
         message="Open sample %s..." % self._type,
         wildcard=self._wildcard,
         defaultDir = share.path(self._type + "s"), style = wx.OPEN)
     if dlg.ShowModal() != wx.ID_OK:
         return
     path = self._suffixPath(dlg.GetPath())
     dlg.Destroy()
     try:
        self._open(path)
     except Exception, e:
         self._exception("open", e)
Example #4
0
 def OnOpenSample(self, e):
     if not self._openGuard() or not self._modGuard():
         return
     dlg = wx.FileDialog(self._ui,
                         message="Open sample %s..." % self._type,
                         wildcard=self._wildcard,
                         defaultDir=share.path(self._type + "s"),
                         style=wx.OPEN)
     if dlg.ShowModal() != wx.ID_OK:
         return
     path = self._suffixPath(dlg.GetPath())
     dlg.Destroy()
     try:
         self._open(path)
     except Exception, e:
         self._exception("open", e)
Example #5
0
 def _openSample(self, name):
     self._open(share.path("%ss" % self._type, 
         "%s.%s" % (name, self._suffix)))
Example #6
0
 def _openSample(self, name):
     self._open(
         share.path("%ss" % self._type, "%s.%s" % (name, self._suffix)))