I think the error here is that we initialise the preferences dialog outside
the function that calls the preferences dialog. This means that once you
have killed it the object doesn't exist anymore - so object.show makes no
sense.
I will take a look at it later and see if there is something that can be
done.
2008/7/26 Ákos Gyimesi <email address hidden>
> Public bug reported:
>
> It happens only if the first dialog was closed with ESC or delete_event
> (not by pressing OK/cancel).
>
> Traceback (most recent call last):
>
> File "/crypt/home/akos/src/pyroom/basic_edit.py", line 167, in
> key_press_event
> self.keybindings[event.hardware_keycode]()
>
> File "/crypt/home/akos/src/pyroom/preferences.py", line 316, in show
> self.dlg.show()
>
> AttributeError: 'NoneType' object has no attribute 'show'
>
> ** Affects: pyroom
> Importance: Undecided
> Status: New
>
> --
> opening Preferences dialog twice throws an exception
> https://bugs.launchpad.net/bugs/252096
> You received this bug notification because you are a member of PyRoom
> Bug Squad, which is subscribed to PyRoom.
>
> Status in PyRoom: distraction-free writing: New
>
> Bug description:
> It happens only if the first dialog was closed with ESC or delete_event
> (not by pressing OK/cancel).
>
> Traceback (most recent call last):
>
> File "/crypt/home/akos/src/pyroom/basic_edit.py", line 167, in
> key_press_event
> self.keybindings[event.hardware_keycode]()
>
> File "/crypt/home/akos/src/pyroom/preferences.py", line 316, in show
> self.dlg.show()
>
> AttributeError: 'NoneType' object has no attribute 'show'
>
I think the error here is that we initialise the preferences dialog outside
the function that calls the preferences dialog. This means that once you
have killed it the object doesn't exist anymore - so object.show makes no
sense.
I will take a look at it later and see if there is something that can be
done.
2008/7/26 Ákos Gyimesi <email address hidden>
> Public bug reported: home/akos/ src/pyroom/ basic_edit. py", line 167, in s[event. hardware_ keycode] () home/akos/ src/pyroom/ preferences. py", line 316, in show /bugs.launchpad .net/bugs/ 252096 home/akos/ src/pyroom/ basic_edit. py", line 167, in s[event. hardware_ keycode] () home/akos/ src/pyroom/ preferences. py", line 316, in show
>
> It happens only if the first dialog was closed with ESC or delete_event
> (not by pressing OK/cancel).
>
> Traceback (most recent call last):
>
> File "/crypt/
> key_press_event
> self.keybinding
>
> File "/crypt/
> self.dlg.show()
>
> AttributeError: 'NoneType' object has no attribute 'show'
>
> ** Affects: pyroom
> Importance: Undecided
> Status: New
>
> --
> opening Preferences dialog twice throws an exception
> https:/
> You received this bug notification because you are a member of PyRoom
> Bug Squad, which is subscribed to PyRoom.
>
> Status in PyRoom: distraction-free writing: New
>
> Bug description:
> It happens only if the first dialog was closed with ESC or delete_event
> (not by pressing OK/cancel).
>
> Traceback (most recent call last):
>
> File "/crypt/
> key_press_event
> self.keybinding
>
> File "/crypt/
> self.dlg.show()
>
> AttributeError: 'NoneType' object has no attribute 'show'
>