Re: Automatic ID generation no longer working?

Johan Vromans <[email protected]>
Newsgroups gmane.comp.python.wxglade
Organization Squirrel Consultancy
Message-ID <[email protected]>
On Thu, 19 Jan 2017 18:28:02 +0100, Dietmar Schwertberger
<[email protected]> wrote:

> If you can prepare a small .wxg file, I will look into this anyway, as 
> this should not happen.

The attached wxg (tmp.wxg) shows the import error. The error disappears
after removing the lines

        <object class="wxToolBar" name="f_main_toolbar" base="EditToolBar">
            <tools>
            </tools>
        </object>


> > What bugs me a bit is that as soon as I show the design, wxGlade
> > constantly consumes 80+% cpu.  
> That's a bit strange. I don't see such behaviour here.
> Is it the design window or the preview? Is it with all files? It may be 
> linked to a certain widget.

The attached wxg (tmp2.wxg) is very minimal. This happens when I start
wxGlade with the file:

------------------
Console window:

INFO    : Starting wxGlade version "82a9a15407e0" on Python 2.7.11
INFO    : Base directory:             /home/jv/wrk/wxGlade/wxGlade-hg
INFO    : Documentation directory:    /home/jv/wrk/wxGlade/wxGlade-hg/docs
INFO    : Icons directory:            /home/jv/wrk/wxGlade/wxGlade-hg/icons
INFO    : Build-in widgets directory: /home/jv/wrk/wxGlade/wxGlade-hg/widgets
INFO    : Template directory:         /home/jv/wrk/wxGlade/wxGlade-hg/templates
INFO    : Credits file:               /home/jv/wrk/wxGlade/wxGlade-hg/CREDITS.txt
INFO    : License file:               /home/jv/wrk/wxGlade/wxGlade-hg/LICENSE.txt
INFO    : Manual file:                /home/jv/wrk/wxGlade/wxGlade-hg/docs/html/index.html
INFO    : Tutorial file:              /home/jv/wrk/wxGlade/wxGlade-hg/docs/tutorial.html
INFO    : Home directory:             /home/jv
INFO    : Application data directory: /home/jv/.wxglade
INFO    : Configuration file:         /home/jv/.wxglade/wxgladerc
INFO    : History file:               /home/jv/.wxglade/file_history.txt
INFO    : Log file:                   /home/jv/.wxglade/wxglade.log
INFO    : Current locale settings are:
INFO    :   Language code: en_US
INFO    :   Encoding: UTF-8
INFO    :   Filesystem encoding: UTF-8
INFO    : Using wxPython 3.0.2.0
INFO    : Loading "wconfig" modules from /home/jv/wrk/wxGlade/wxGlade-hg/widgets/widgets.txt:
INFO    : Load code generators:
INFO    :   XRC generator loaded
INFO    :   python generator loaded
INFO    :   lisp generator loaded
INFO    :   C++ generator loaded
INFO    :   perl generator loaded
INFO    : Loading widgets from /home/jv/wrk/wxGlade/wxGlade-hg/widgets/widgets.txt:
INFO    :       frame
INFO    :       dialog
INFO    :       panel
INFO    :       notebook
INFO    :       splitter_window
INFO    :       button
INFO    :       toggle_button
INFO    :       bitmap_button
INFO    :       spin_button
INFO    :       text_ctrl
INFO    :       choice
INFO    :       combo_box
INFO    :       list_box
INFO    :       check_list_box
INFO    :       checkbox
INFO    :       radio_button
INFO    :       radio_box
INFO    :       spin_ctrl
INFO    :       slider
INFO    :       gauge
INFO    :       calendar_ctrl
INFO    :       generic_calendar_ctrl
INFO    :       datepicker_ctrl
INFO    :       list_ctrl
INFO    :       tree_ctrl
INFO    :       grid
INFO    :       static_text
INFO    :       hyperlink_ctrl
INFO    :       static_line
INFO    :       static_bitmap
INFO    :       spacer
INFO    :       property_grid_manager
INFO    :       custom_widget
INFO    :       menubar
INFO    :       toolbar
INFO    :       statusbar
INFO    : Load sizer generators:
INFO    :   for python
INFO    :   for lisp
INFO    :   for C++
INFO    :   for XRC
INFO    :   for perl
INFO    : Read wxGlade project from file "/home/jv/tmp/tmp2.wxg"
INFO    : Loading time: 0.02689
-----------------------

Screenshot at 2017-01-19 19-31-34.png

-----------------------

CPU behaviour is normal (neglectible).

Right click on frame (MyFrame) > Show

Screenshot at 2017-01-19 19-33-46.png. Note that nothing is shown, and CPU is around 90%.

Left click on the triangle before frame (MyFrame). The tree expands, still nothing is shown.

Left click on frame_menubar. Now the Design window pops up. CPU stays at 90%.

Screenshot at 2017-01-19 19-37-10.png.


I hope this is helpful...

-- Johan

------------------------------------------------------------------------------
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
tmp.wxg (application/octet-stream, 1.8 KB) - not displayed
Screenshot at 2017-01-19 19-31-34.png (image/png, 78 KB) - not displayed
Screenshot at 2017-01-19 19-33-46.png (image/png, 63 KB) - not displayed
Screenshot at 2017-01-19 19-37-10.png (image/png, 79.2 KB) - not displayed
tmp2.wxg (application/octet-stream, 1.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.