Menu

#223 Can't add a panel.

closed
add a panel (1)
0.8.0a9
2017-12-06
2017-11-27
Rick King
No

ERROR : None
An unexpected error occurred!

Exception type: <type 'exceptions.keyerror'="">
Exception details: 'wxDEFAULT_DIALOG_STYLE'</type>

Application stack traceback:
File "C:\Program Files (x86)\wxGlade_0.8.0\common.py", line 218, in add_toplevel_object
widgetsrefs[event.GetId()]
File "C:\Program Files (x86)\wxGlade_0.8.0\widgets\dialog\dialog.py", line 96, in builder
dialog.properties["style"].set("wxDEFAULT_DIALOG_STYLE")
File "C:\Program Files (x86)\wxGlade_0.8.0\new_properties.py", line 663, in set
new_value_set = self._decode_value(value)
File "C:\Program Files (x86)\wxGlade_0.8.0\new_properties.py", line 964, in _decode_value
style_def = self.style_defs[v]

Date and time: 2017-11-27T18:45:45.590000
Python version: 2.7.13
wxPython version: 3.0.2.0
wxWidgets platform: WXMSW
wxGlade version: 0.8.0a4

I tried to add a panel.

1 Attachments

Discussion

  • Dietmar Schwertberger

    Thanks for reporting. I will update the release version in the next days.

    For now, please move up line 96 of file widgets\dialog\dialog.py to line 91:
    dialog.properties["style"].set("wxDEFAULT_DIALOG_STYLE")

        if base == "wxDialog":
            is_panel = False
            dialog = EditDialog(name, parent, wx.NewId(), name, klass=klass)
            dialog.properties["style"].set("wxDEFAULT_DIALOG_STYLE")
        else:
            is_panel = True
            import panel
            dialog = panel.EditTopLevelPanel(name, parent, wx.NewId(), klass=klass)
    

    Regards,
    Dietmar

     
  • Dietmar Schwertberger

    • status: open --> accepted
    • assigned_to: Dietmar Schwertberger
     
  • Dietmar Schwertberger

    fix is in repository

     
  • Dietmar Schwertberger

    Ticket moved from /p/wxglade/patches/25/

    Can't be converted:

    • _milestone: Official Release
    • _priority: 1
     
  • Dietmar Schwertberger

    • status: accepted --> pending
    • Affected Version: --> 0.8.0a9
     
  • Dietmar Schwertberger

    • status: pending --> closed
     
  • Dietmar Schwertberger

    0.8.0a10 is online now.

     

Log in to post a comment.

Auth0 Logo