wx.Panel not an object?

Panels are usually contained in a Frame container.

Apparently I framed my question wrong.Sorry:p
What I meant is: When we create a dialog in wxGlade, there is an option of
either wx.Dialog or wx.Panel …(Im guessing its a dialog panel? Like a ‘loading…pls wait’ screen on most software s)
while generating the code, i cannot set a top window as the aforementioned panel…
Manually doing so in wxpython results in an error…

Hope Im clear :slight_smile:
Thanks,
Udgam

Hi Udgam and All,

Panels are usually contained in a Frame container.

Apparently I framed my question wrong.Sorry:p
What I meant is: When we create a dialog in wxGlade, there is an option of
either wx.Dialog or wx.Panel ..(Im guessing its a dialog panel? Like a
'loading..pls wait' screen on most software s)
while generating the code, i cannot set a top window as the aforementioned
panel..
Manually doing so in wxpython results in an error..

Unfortunately, I'm no expert in wxGlade as I only used it briefly a
few years ago.

You might be able to figure out what you need to do by looking at some
code that uses wxGlade to make a dialog. Here's something I found
doing a Google Code search

http://code.google.com/p/pyrologger/source/browse/trunk/wxgauge/ExampleCode/wxSerialConfigDialog.py?r=27

(It's rather complex, but might be a "real world" example that helps
in your case.)

There are many dialog types given in the wxPython Demo appropriate for
your Python/wxPython installation:

http://wxpython.org/download.php

I'm sorry that I cannot directly answer your question about making it
a top level window (if I'm understanding you correctly). I hope this
information helps, and that someone here can jump in with a direct
answer.

I hope this helps. Good luck.

Cheers,
Scott.

···

On Sat, Sep 8, 2012 at 9:35 AM, Udgam Mehetre <uvmgr8@gmail.com> wrote:

Hope Im clear :slight_smile:
Thanks,
Udgam

Create a frame and then when you create the panel use that frame as its parent parameter. A panel can not be a top-level window.

It would be a good idea to gain some more knowledge and experience about using the wxPython package by hand instead of depending on wxGalde for everything. In my experience using UI builders is always much more difficult without first having the ability to not need to use the UI builder.

···

On 9/8/12 6:35 AM, Udgam Mehetre wrote:

>Panels are usually contained in a Frame container.
Apparently I framed my question wrong.Sorry:p
What I meant is: When we create a dialog in wxGlade, there is an option of
  either wx.Dialog or wx.Panel ..(Im guessing its a dialog panel? Like a
'loading..pls wait' screen on most software s)
while generating the code, i cannot set a top window as the
aforementioned panel..
Manually doing so in wxpython results in an error..

--
Robin Dunn
Software Craftsman