#44 DrScript Menu destroyed


After doing some drag and drop in Edit Script Menu,
and then Save the new postitions,
the Script menu is disrupted.
(I didn't add anything new, only resorted the menu
with dnd)

Output in Console:
Error at: Check File
Error at: My Close Split Panel
Error at: My Split Panel
Error at: PyCrust DrPython
Error at: cvs edit
Error at: Quick search backward
Error at: Quick search forward
Error at: Start DrPython
Error at: My Close File
Error at: My Reload File
Error at: Copy Current File
Error at: Copy Current Path
Error at: My Find And Complete
Error at: Cpp Comment
Error at: C Comment Begin
Error at: C Comment End
Error at: C Comment Line
Error at: C Uncomment Line
Error at: Switch Header Cpp
Error at: Doxygen Comment
Traceback (most recent call last):
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
172, in OnbtnSave
s, k = GetShortcutArrays(self.datatree, root)
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
101, in GetShortcutArray
s, k = GetShortcutArrays(tree, b)
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
107, in GetShortcutArray
s, k = GetShortcutArrays(tree, b)
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
89, in GetShortcutArrays

if data.Shortcut is not None:
AttributeError: 'NoneType' object has no attribute


  • Daniel Pozmanter

    Logged In: YES

    I cannot replicate this error, on either windows or linux,
    wxPython (linux), (windows), python 2.3.

    Any idea what is going on here?

  • Daniel Pozmanter

    • priority: 5 --> 7
  • Daniel Pozmanter

    Logged In: YES

    Also a few questions:

    Do you have any folders?

    Did you try sorting with just the sort button?
    Just drag and drop?

    How many drag and drop operations does it take to make
    drpython explode?

  • Franz Steinhaeusler

    Logged In: YES

    Yes, it happened with drag and drop of folders.
    Just drag and drop. I have four folders.
    I suspect, it was one folder, where only one script was
    Several Operations, i performed.
    One folder contained no drscript anymore (before there were
    several scripts in there).
    I will try to test it with minimal folder/scripts, and then
    give you news, how to operate to achieve this, if
    I can get it happening again.

    (so backing up everyday, as i do, is good practice :))

  • Daniel Pozmanter

    • status: open --> closed-fixed
  • Daniel Pozmanter

    Logged In: YES

    Got it.

    Apparently, when moving a branch's children, I copied PyData
    from the new branch to the old! Oops.

    It now copies the data from the old branch to the new.


Log in to post a comment.