1) drShellMenu.py:
(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 drDynamicDrScriptDialog.py 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
1) plugin sessions.py
"Something Went Wrong Loading the Folding State."
replaced two times int () to eval()
if eval(vis):
DrFrame.txtDocumentArray[y].ShowLines(x, x)
else:
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\drPrefsDialog.py", 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) drShellMenu.py:
(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 drDynamicDrScriptDialog.py 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
drpython.py:
def OnViewAbout(self, event):
wx.Execute((self.prefs.documentationbrowser + " \"file:///" + self.programdirectory + "/documentation/about.html" + "\""), wx.EXEC_ASYNC)
def OnViewHelp(self, event):
wx.Execute((self.prefs.documentationbrowser + " \"file:///" + self.programdirectory + "/documentation/help.html") + "\"", wx.EXEC_ASYNC)
1) plugin sessions.py
"Something Went Wrong Loading the Folding State."
replaced two times int () to eval()
if eval(vis):
DrFrame.txtDocumentArray[y].ShowLines(x, x)
else:
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\drPrefsDialog.py", 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
>irgendetwas geht da ab
I meant: "something is missing here" ;)
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.
>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 \"file:///" and quotes "\"" at the end, and so it works.
wx.Execute((self.prefs.documentationbrowser + " \"file:///" + self.programdirectory + "/documentation/about.html" + "\""), wx.EXEC_ASYNC)
Gotcha. It shall be done!