Re: Bug at version 0.70-rc2
Miloslav Semler <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | Crytur, spol. s r.o. |
| Message-ID | <[email protected]> |
Hi Carsten,
> Hi Miloslav,
>
> Miloslav Semler schrieb am 27.10.2015:
>> error still persists. For reproducibility of this bug you need some
>> diacritics like "žluťoučký kůň" ie. in text of the label.
> Thanks for this hint. I can reproduce the bug now. I'll fix it.
>
>> Aditionally, there is several other bugs which persists from older
>> version:
>> a) when use custom widget, arguments from tab "Widget" disappears
>> after load/save.
> Please klick "Apply" to make this changes persistent
>
this maybe work but if you take saved file and open it, the text after
dollar sign (a name of the variable) disappears.
>> b) when i try to add hline to flexgridsizer it throws exception on me
> I an't reproduce this exception. I did following steps:
> 1. Create a new wxGlade project
> 2. Create a new dialog
> 3. Add a "Flexible" Grid sizer to the dialog
> 4. right click to the grid sizer and
> 1. Add slot
> 2. Insert slot
> 3. Add row
> 4. Add column
> 5. Insert row
> 6. Insert column
> 5. All works fine.
>
> Could you change the exception details and or the wxglade log file,
> please? Or do you have a project that's failing in this point?
if you add horizontal line *after* button, it throws an exception:
ERROR : None
An unexpected error occurred!
Date and time: 2015-10-29T08:23:37.171818
Python version: 2.7.9
wxPython version: 3.0.1.1
wxWidgets platform: __WXGTK__
wxGlade version: 0.7.1RC1
Language code: cs_CZ
Encoding: UTF-8
Filesystem encoding: UTF-8
Exception type: <type 'exceptions.TypeError'>
Exception details: not all arguments converted during string formatting
Application stack trace:
Stack frame at level 0
======================
File
"/home/semler/Stažené/wxGlade-0.7.1rc1/widgets/static_line/static_line.py",
line 107
Function "builder(parent=<dialog.dialog.EditDialog object at
0x7f9b9f446050>, sizer=<edit_sizers.edit_sizers.EditFlexGridSizer object
at 0x7f9b9f446190>, pos=6, number=[2])"
Source code context:
label = '%s_%d' % (tmpl_label, number[0])
while common.app_tree.has_name(label):
number[0] += 1
-> label = tmpl_label % number[0]
widget = editor_class(label, parent, wx.ID_ANY,
dialog.get_selection(),
sizer, pos, common.property_panel)
node = Tree.Node(widget)
Local variables:
-> sizer (<class 'edit_sizers.edit_sizers.EditFlexGridSizer'>):
<edit_sizers.edit_sizers.EditFlexGridSizer object at 0x7f9b9f446190>
-> parent (<class 'dialog.dialog.EditDialog'>):
<dialog.dialog.EditDialog object at 0x7f9b9f446050>
-> pos (<type 'int'>): 6
-> number (<type 'list'>): [2]
-> dialog (<class 'wcodegen.dialogs.WidgetStyleSelectionDialog'>):
<wcodegen.dialogs.WidgetStyleSelectionDialog; proxy of <Swig Object of
type 'wxDialog *' at 0x18e3820> >
-> label (<type 'str'>): 'static_line_1'
Stack frame at level 1
======================
File
"/home/semler/Stažené/wxGlade-0.7.1rc1/edit_sizers/edit_sizers.py", line 393
Function "drop_widget(self=<edit_sizers.edit_sizers.SizerSlot object
at 0x7f9b9e1d2ad0>, event=<wx._core.MouseEvent; proxy of <Swig Object of
type 'wxMouseEvent *' at 0x7ffc336acd80> >)"
Source code context:
self.widget.Hide()
# call the appropriate builder
common.widgets[common.widget_to_add](self.parent, self.sizer,
-> self.pos)
common.widget_to_add = None
common.app_tree.app.saved = False
Local variables:
-> self (<class 'edit_sizers.edit_sizers.SizerSlot'>):
<edit_sizers.edit_sizers.SizerSlot object at 0x7f9b9e1d2ad0>
-> event (<class 'wx._core.MouseEvent'>): <wx._core.MouseEvent; proxy
of <Swig Object of type 'wxMouseEvent *' at 0x7ffc336acd80> >
Please note that if is not other widget, or you add horizontal line
before button in flex grid sizer, it seems to work ok.
>
>> c) segfault on cut/paste of widget
> That's hard to solve this segfaults with changes in the wxPython code.
> Could you provide a list of steps how to reproduce, please?
1. Create a new wxGlade project
2. Create a new dialog
3. Add a "Flexible" Grid sizer to the dialog
4. right click to the grid sizer and
1. remove slot
2. click to add button widget, then application crashes
>
>> d) generates an unwanted code if choices in combo box/check list box
>> are empty:
>> self.check_list_box_stitky = wx.CheckListBox(self, wx.ID_ANY,
>> choices=["<set by wxGlade>"])
> That's fixed in the current development version called "tip". This
> version is available at
> https://bitbucket.org/agriggio/wxglade/downloads#tag-downloads
>
>> I hope some day this bugs will be fixed because version in debian
>> wheezy did not this bugs.
> I'll fix this bugs before the final version will be release with one
> exception the segfaults are mostly triggered by the underlaying C++
> code.
I think this problem usually arises from wxpython when you pass an
unexpected object to function
as they often dont have this situation checked. Maybe some careful
checks in code could help to fight with this problem.
>
> Thanks for sharing the details!
>
> Regards,
> Carsten
>
--
Technolog
Crytur, spol. s r.o.
Palackého 175
51101 Turnov
------------------------------------------------------------------------------
_______________________________________________
wxGlade-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxglade-general