click button and then popup a window, how to?

Hi all, I am a novice, just study wxpython for 3 days…but I want to use wxpython to make my python program better…
I have already made a Server/Client chat program, it can work, the functions like msn message…but u know it is commandline…so ugly

Now, my question is I want to click a ‘submit’ button, and then it can pop up a window if connect successfully.how to do this?
which API funciton I should use? I skimmed wxpython in action, unluckly, I didn’t find answer…

just hint is ok…
tks in advance…

A lot can be learned by just copying and experimenting with the working
code in the wxPython demo programs. If you haven’t already, download
the docs and demos for your operating system from
http://www.wxpython.org/download.php and explore the many options.

···

On 5/25/07, Heefan heefan@gmail.com wrote:

Hi all, I am a novice, just study wxpython for 3 days…but I want to use wxpython to make my python program better…
I have already made a Server/Client chat program, it can work, the functions like msn message…but u know it is commandline…so ugly

Now, my question is I want to click a ‘submit’ button, and then it can pop up a window if connect successfully.how to do this?
which API funciton I should use? I skimmed wxpython in action, unluckly, I didn’t find answer…

just hint is ok…
tks in advance…

Hi Heefan,

···

On 5/25/07, Heefan wrote:

Hi all, I am a novice, just study wxpython for 3 days...but I want to use
wxpython to make my python program better...
I have already made a Server/Client chat program, it can work, the functions
like msn message...but u know it is commandline...so ugly
Now, my question is I want to click a 'submit' button, and then it can pop
up a window if connect successfully.how to do this?
which API funciton I should use? I skimmed wxpython in action, unluckly, I
didn't find answer...
just hint is ok...
tks in advance....

My suggestion is to use, peruse and abuse the wxPython demo, with its
source. Then, on your specific question, you can use wx.PopupWindow,
wx.PopupTransientWindow or a simple wx.MessageBox.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/