wxpython add files dynamically to notebook

Hi friends,

Right now i am working on a GUI using wxpython notebook widget. Wat i wud like to do is, i have a folder strcuture like this

Dir1
  File1.py
  File2.py
        File3.py
  ... etc

All these files are wxpython files that holds the source code of a standalone GUI. for ex, File1.py contains the wxpython source code to display a textbox & an ok button. so wat i need is to add this UI
to the notebook panel dynamically. so my plan is, whenever I develop a new independant UI, & copied it to the above folder, it shud automatically be added as a new panel of the notebook. can i do it with wxpython?? any
suggestions/ideas for me to accomplish this mission??

thanks a lot in advance for ur time...
cheers
deartoms

I'm curious why someone who needs help with a question, would insult
the intelligence of his readers through such purposely atrocious
spelling.

···

On Sun, Oct 12, 2008 at 4:54 AM, thomas p <tomstek@yahoo.com> wrote:

Hi friends,

Right now i am working on a GUI using wxpython notebook widget. Wat i wud like to do is, i have a folder strcuture like this

Dir1
       File1.py
       File2.py
       File3.py
       ... etc

All these files are wxpython files that holds the source code of a standalone GUI. for ex, File1.py contains the wxpython source code to display a textbox & an ok button. so wat i need is to add this UI
to the notebook panel dynamically. so my plan is, whenever I develop a new independant UI, & copied it to the above folder, it shud automatically be added as a new panel of the notebook. can i do it with wxpython?? any
suggestions/ideas for me to accomplish this mission??

thanks a lot in advance for ur time...
cheers
deartoms

--
Stand Fast,
tjg. [Timothy Grant]

Hi friends,

Right now i am working on a GUI using wxpython notebook widget. Wat i wud like to do is, i have a folder strcuture like this

Dir1
       File1.py
       File2.py
       File3.py
       ... etc

All these files are wxpython files that holds the source code of a standalone GUI. for ex, File1.py contains the wxpython source code to display a textbox & an ok button. so wat i need is to add this UI
to the notebook panel dynamically. so my plan is, whenever I develop a new independant UI, & copied it to the above folder, it shud automatically be added as a new panel of the notebook. can i do it with wxpython?? any
suggestions/ideas for me to accomplish this mission??

thanks a lot in advance for ur time...
cheers
deartoms

As far as suggestions go, have a look at (in this order):

os.walk
http://www.python.org/doc/2.5.2/lib/os-file-dir.html

wx.FramePanel
http://osdir.com/ml/ide.boa-constructor.user/2006-08/msg00009.html
(Ctrl-F your way to mention of wx.FramePanel)

.AddPage() for a wx.Notebook
http://wxpython.org/docs/api/wx.BookCtrlBase-class.html

Putting these three together should probably get "u" well on "ur" way. :slight_smile:

Che

···

On Sun, Oct 12, 2008 at 3:00 PM, Timothy Grant <timothy.grant@gmail.com> wrote:

On Sun, Oct 12, 2008 at 4:54 AM, thomas p <tomstek@yahoo.com> wrote:

I'm curious why someone who needs help with a question, would insult
the intelligence of his readers through such purposely atrocious
spelling.

--
Stand Fast,
tjg. [Timothy Grant]
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Thanks for the links Che... so let me hav a try. thanks again

···

--- On Mon, 10/13/08, C M <cmpython@gmail.com> wrote:

From: C M <cmpython@gmail.com>
Subject: Re: [wxpython-users] wxpython add files dynamically to notebook
To: wxpython-users@lists.wxwidgets.org
Date: Monday, October 13, 2008, 7:20 AM
On Sun, Oct 12, 2008 at 3:00 PM, Timothy Grant > <timothy.grant@gmail.com> wrote:
> On Sun, Oct 12, 2008 at 4:54 AM, thomas p > <tomstek@yahoo.com> wrote:
>> Hi friends,
>>
>> Right now i am working on a GUI using wxpython
notebook widget. Wat i wud like to do is, i have a folder
strcuture like this
>>
>> Dir1
>> File1.py
>> File2.py
>> File3.py
>> ... etc
>>
>> All these files are wxpython files that holds the
source code of a standalone GUI. for ex, File1.py contains
the wxpython source code to display a textbox & an ok
button. so wat i need is to add this UI
>> to the notebook panel dynamically. so my plan is,
whenever I develop a new independant UI, & copied it to
the above folder, it shud automatically be added as a new
panel of the notebook. can i do it with wxpython?? any
>> suggestions/ideas for me to accomplish this
mission??
>>
>> thanks a lot in advance for ur time...
>> cheers
>> deartoms

As far as suggestions go, have a look at (in this order):

os.walk
http://www.python.org/doc/2.5.2/lib/os-file-dir.html

wx.FramePanel
http://osdir.com/ml/ide.boa-constructor.user/2006-08/msg00009.html
(Ctrl-F your way to mention of wx.FramePanel)

.AddPage() for a wx.Notebook
wxPython API Documentation — wxPython Phoenix 4.2.2 documentation

Putting these three together should probably get
"u" well on "ur" way. :slight_smile:

Che