Hello again I'm trying to make some application that control my printer queue using cups. The layout is extremely simple, a header, a footer and the main window with two columns, A and B, (with 10 rows) centered vertically on the screen. For the two columns, one should be selectable and the other not, while the focus should always be on the selectable one. My attempts and fails until now where:
1. Create two listboxes, one with selectable text widget (OK), and the other with simple text (OK). With these two, put them in a column environemnt (OK). Now, fix the size of the listboxes to 10 rows (failed!). First question, how can I fix the size of a ListBox? I tried with BoxAdapter, but since it doesn't have rows specified, doesn't work (of course). The vertical centering is made with Filler, but the problem of the rows is happens again. 2. The focus. Ian told me how should I choose the focus of the column, but if I use my keyboard arrows left and right i loose the focus. How can I force to have the focus (highlight) only on column A always? 3. Out of the scope, but maybe someone have a suggestion. Besides the keyboard interaction, which will tell the printer to start the job of kill it, my application is always checking for new incoming requests (OK). When it arrives, it should actualize the listbox of column A. So far I made some loop which contains, also the keyboard get_input, made a break on the main loop if such an event occurs, and render it again. I know that this is not correct, but I'm just starting with Python and urwid. Does anybody have a better suggestion? Sorry for the long email, thanks any suggestion Pedro _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
