Tk eventloop

2006-09-21 Thread swell
Hi I try/struggle to use an ActiveX component in a Tk app. When i execute it i can catch the first event and then when i try to change the value of the w widget everything blocks and nothing is updated anymore. Does someone have an idea of what is wrong and how to smartly integrate these events wi

Tkinter and ActiveX event

2006-09-19 Thread swell
Hi, I want to integrate into an GUI a activeX component that generate some events. What i have done is : - Create the activeX component ( DispatchWithEvents method ) - create the GUI - app.mainloop() My pb is that i don't know how to take into account the events generated by the activeX co

PumpMessages et WM_QUIT

2006-09-13 Thread swell
I have a COM server that throw events that i catch after running the event loop thanks to pythoncom.PumpMessages(). How can i stop and exit this loop? I tried to use win32api.PostQuitMessage() but this has no effect ( the doc says that WM_QUIT stops the PumpMessages loop but it doesn't) Does someo

Re: Broadcast server

2006-09-04 Thread swell
Thx Alex, This is exactly what i want to look at . Async will definitely be something i will look at . Does it make sense to mix async and threaded server ( let say a threaded server accepting max 10 connections and dealing with client request asynchronously ). Does it sounds you a good design.

Re: Broadcast server

2006-09-01 Thread swell
Yes but before going deeper ( too deep ) i would like to play with a toy python example. Basically what i want to study first is a socket or socket+select server and 5 clients that get time updated from the server. Don't really know how to keep hot connections without blocking the server ? If some

Re: Broadcast server

2006-08-31 Thread swell
Hi Matt , It sounds very interesting and i will definitely take a deeper look but i was more considering something simpler as a learning exercise more that finding a package that should already do what i want to achieve. I want to find the basic guidelines to write that kind of client/server arch

Broadcast server

2006-08-31 Thread swell
I would like to write a server with the low level API of python ( socket+select and/or socket+thread ) that allow me to register client and update them every X seconds ( could be the time, the temperature, a stock quote, a message , ... ). How to write the server that keep hot connections with cli

Problem with smart pointers

2006-02-11 Thread swell
Hello, I use the Boost.Python lib for a couple of weeks now and i am facing a pb. To sum up i have a small hierarchy of objects and have a factory to build concrete object. The pb is i think aroud the auto_ptr object that is not correctly managed by my code ( i use version 1.33 ) I think that t