Re: Can't delete events in PropertyGridManager
"Brendan Simon (eTRIX)" <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | eTRIX pty ltd |
| Message-ID | <[email protected]> |
On 17/9/17 10:30 pm, Dietmar Schwertberger wrote:
> On 9/17/2017 9:22 AM, Brendan Simon (eTRIX) wrote:
>>
>> I later changed my mind and was going to do the Bind explicitly in my
>> app (and not via wxglade). So I went to delete the event callback
>> function in wxglade, but it wouldn't let me delete it. I just
>> highlighted the function text and deleted it, then when exiting the
>> box the event function would get put back.
>>
>> Am I doing something wrong or is it a bug in wxglade?
>
> This was a bug in wxGlade. I've changed the validation regex now such
> that it matches an empty string as well.
>
> The repository is updated.
>
> In the repository there's also an experimental re-do/repeat facility:
> - apply one ore multiple property changes to a widget; e.g. Border=3,
> Alignment=wxALIGN_CENTER
> - select another widget
> - press Ctrl-Y to apply the last change to the selected widget (in
> the example: Alignment=wxALIGN_CENTER)
> or
> - press Ctrl-R to apply all the changes to the selected widget
>
> I hope that I can eventually extend this to a full undo/redo facility.
>
I updated and got the following error. I tried reverting back two
commits (which is where I thought I was) and the error still persists.
I also got this error when running from Linux, but I think I was using
Python2 and might not have had some other dependencies installed.
Anyway, it seems to be persisting now, and I can't get rid of it.
ERROR : An internal error occurred while loading file
"b'sdcard_production.wxg'"
An unexpected error occurred!
Exception type: <class 'AttributeError'>
Exception details: 'set' object has no attribute 'append'
Application stack traceback:
File "/Users/brendan/Sandbox/wxglade/main.py", line 666, in _open_app
p.parse(infile)
File "/Users/brendan/Sandbox/wxglade/xml_parse.py", line 52, in parse
self.parser.parse(source)
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/xml/sax/expatreader.py",
line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/xml/sax/xmlreader.py",
line 125, in parse
self.feed(buffer)
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/xml/sax/expatreader.py",
line 217, in feed
self._parser.Parse(data, isFinal)
File "/Users/sysadmin/build/v3.6.2/Modules/pyexpat.c", line 468,
in EndElement
File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/xml/sax/expatreader.py",
line 336, in end_element
self._cont_handler.endElement(name)
File "/Users/brendan/Sandbox/wxglade/xml_parse.py", line 244, in
endElement
obj.obj.copy_properties( obj.sizeritem,
("option","flag","border","span") )
File "/Users/brendan/Sandbox/wxglade/new_properties.py", line
2217, in copy_properties
self.properties_changed(modified)
File
"/Users/brendan/Sandbox/wxglade/widgets/checkbox/checkbox.py", line
76, in properties_changed
ManagedBase.properties_changed(self, modified)
File "/Users/brendan/Sandbox/wxglade/edit_windows.py", line 603,
in properties_changed
modified.append("flag")
Date and time: 2017-09-17T23:01:44.832295
Python version: 3.6.2
wxPython version: 4.0.0b1
wxWidgets platform: __WXMAC__
wxGlade version: 0.8.0a1
Language code: darwin
Encoding: darwin
Filesystem encoding: utf-8
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general