opening Preferences dialog twice throws an exception
Bug #252096 reported by
Ákos Gyimesi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyRoom |
Fix Released
|
Undecided
|
Unassigned | ||
0.3 |
Fix Released
|
Undecided
|
Unassigned |
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/
self.
File "/crypt/
self.dlg.show()
AttributeError: 'NoneType' object has no attribute 'show'
Related branches
lp:~gyim/pyroom/bug-252096
(Merged)
Changed in pyroom: | |
status: | New → Fix Committed |
Changed in pyroom: | |
status: | Fix Committed → Fix Released |
Changed in pyroom: | |
milestone: | none → 0.3 |
To post a comment you must log in.
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'
>