[Urwid] multiple edit fields
Eric S. Johansson
esj at harvee.org
Thu Jun 22 00:14:17 EDT 2006
I'm writing a ethernet manipulation utility for the IPCop project and
I'm running into some problems. Problem number one is selecting which
ethernet card I am using. I am using radio buttons because they kind of
works as a user interface. The only question is how do I detect which
button is currently active? I see it as a callback function and I can
obviously use that to change the data structures holding the per network
interface data. My question would be which do I need to kick off
another display update or will that happen automatically after I return
from the callback?
the second problem is the right hand column. Those are individual edit
fields so I can change the IP address, network driver etc. but I'm not
really sure how to retrieve the data so I can change the internal
structures and save when the user hits the "not yet created" save button.
I had another problem with the list of edit boxes, when I hit page down
key it went from the radio boxes to the last edit box. I would have
expected it to go to the first.
( ) Green ( ) Orange ( ) Blue ( ) Red (X)
AltRed
GREEN_ADDRESS 172.20.0.10
GREEN_BROADCAST 172.20.0.255
GREEN_DEV ETH0
GREEN_DISPLAYDRIVER
NE2K-PCI GREEN_DRIVER
NE2K-PCI GREEN_DRIVER_OPTIONS
GREEN_NETADDRESS 172.20.0.0
GREEN_NETMASK 255.255.255.0
it's nice to see this toolkit. So far, it's been a bit of a climb to
learn it but it's definitely been worthwhile. I may also use it to
build some tools for my anti-spam system (camram)
It would be nice to see something like this for X11 because there are
lots of desktop widget applications I would love to build but the
learning curve for gui's is more than I want to get into. and I also
want to point out that the examples have been pretty good. tour.py was
the core that got me started.
---eric
--
Speech-recognition in use. It makes mistakes, I correct some.
More information about the Urwid
mailing list