some changes

  • Franz Steinhaeusler

        (three times replaced  self.parent.filename with self.parent.txtDocument.filename)

        args = args.replace("<Current File>", self.parent.txtDocument.filename)
        if args.find("<Current Directory>") > -1:
          args = args.replace("<Current Directory>", os.path.split(self.parent.txtDocument.filename)[0])
        command = self.commands[shellindex] + " " + args
        dir = self.directories[shellindex]
        if dir.find("<Current Directory>") > -1:
          dir = dir.replace("<Current Directory>", os.path.split(self.parent.txtDocument.filename)[0])

    2) if dos line endings were adjusted, you got an exception using dynamic drscript
        Apparantly, the line endings of the string to compile must not be dos line endings.

        I changed following line in to:
        code = compile((value.replace ('\r\n', '\n') + '\n'), "Dynamic DrScript", 'exec')

    3)  about and help
        mozilla und internet explorer
        "C:\Programme\Internet Explorer\iexplore.exe" "file:///c
          :/Eigene Dateien/python/drpython/documentation/about.html"
        1) quotes (because of spaces in directories)
        2) "file:///" needs mozilla firefox
        tested with C:\Programme\Mozilla Firefox\firefox.exe
        and c:\Programme\Internet Explorer\IEXPLORE.EXE
        hope it works also on linux

        def OnViewAbout(self, event):
          wx.Execute((self.prefs.documentationbrowser + " \&quot;file:///" +  self.programdirectory + "/documentation/about.html" + "\&quot;"), wx.EXEC_ASYNC)

        def OnViewHelp(self, event):
          wx.Execute((self.prefs.documentationbrowser + " \&quot;file:///" + self.programdirectory + "/documentation/help.html") + "\&quot;", wx.EXEC_ASYNC)

    • Franz Steinhaeusler

      1) plugin
          "Something Went Wrong Loading the Folding State."
          replaced two times int () to eval()
          if eval(vis):
            DrFrame.txtDocumentArray[y].ShowLines(x, x)
            DrFrame.txtDocumentArray[y].HideLines(x, x)
          DrFrame.txtDocumentArray[y].SetFoldExpanded(x, eval(exp))

      2) Traceback (most recent call last):
          irgendetwas geht da ab
          File "c:\Eigene Dateien\python\drpython\", line 888, in OnbtnBrowseIcon
            if (len(self.grandparent.prefs.themesdefaultdirectory) > 0):
         AttributeError: drPreferences instance has no attribute 'themesdefaultdirectory'

      3) - drgetkeydialog:
          def OnKeyDown(self, event):

          ancestor.prefs.europeankeyboard => self.ancestor.prefs.europeankeyboard
          attribute error: no "europeankeyboard" member in prefs

    • Franz Steinhaeusler

      >irgendetwas geht da ab
      I meant: "something is missing here" ;)

    • Daniel Pozmanter

      1)  This is already fixed.  CVS is not up to date.  I will have to manually update all the files.  In 3.0.7, this is fixed.

      2)  Thanks.  I added the fix, although I edited it to simply replace \r with \n.

      3)  Not sure what you are saying here.

      I haven't gotten to the sessions part yet.

    • Franz Steinhaeusler

      >3) Not sure what you are saying here.

      I have Mozilla Firefox installed and the help and about screen were not shown:
      I added the \&quot;file:///"  and quotes "\&quot;" at the end, and so it works.

            wx.Execute((self.prefs.documentationbrowser + " \&quot;file:///" +  self.programdirectory + "/documentation/about.html" + "\&quot;"), wx.EXEC_ASYNC)        

    • Daniel Pozmanter

      Gotcha.  It shall be done!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks