|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
simple, full wxPython examples?
Hi all,
In an effort to learn wxPython, I'm trying to make a very simple chat program. Two textboxes: The top one you can type stuff into, click a "send" button, and have it sent to the user you are connected to. The bottom one displays messages you receive from the other user. So I'm thinking that there are two threads that need to be created -- one that is responsible for handling the GUI, and another that handles sending/receiving data over a socket (passing data to/from the GUI thread, when the user receives a message or sends one, respectively). I suppose I could just start attempting to code it right away, but I'd like a prototype to sort of guide me. So does anyone know of a simple program using wxPython and sockets that might help me out? Thanks, theperfectsoup |
|
#2
|
||||
|
||||
|
Have you had a look though the examples that come with wxPython? There all very fun and generally entertaining; i dont know if there are any using sockets but worth a look
![]() Mark. |
|
#3
|
|||
|
|||
|
Quote:
Yeah, the problem is that they're just little code snippets that teach you how to do certain things -- a popup message, a textbox, etc. But it doesn't really teach you how to run multiple threads in a GUI, how to interface between the GUI and a more substantial underlying program using sockets, etc. Oh well. Starting to mess around with it -- hopefully it won't be hard to learn. - tps |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > simple, full wxPython examples? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|