Florian Kanngiesser wrote on 2011-03-31 08:05:
> Hi,
> I'm trying to write an application which creats widgets based on a 
> config file on the fly. The basic idea was to put a button into a 
> listbox and change the content of the listbox in an on click event (like 
> expanding a part of the application to display "hidden" objects), my 
> problem right now is that I dont know how to bind a button to a callback 
> function (I simply cant find anything understandable in the recourses) 
> and then adding the new content to the listbox and redrawing it.
> Right now I'm able to create the Listbox with the widgets I want, I just 
> dont know how to do it on a button click event, or better to say I dont 
> know how I can change a widget (the listbox) at runtime.
> 
> Can somebody help me with this problem?
> Many thanks in advance.

Hi Florian,

I believe your question was answered in IRC.  For the benefit of those
not on:

>> that should be covered in the Button reference and in at least a
>> couple examples like tour.py, graph.py ..

Ian

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to