The code for creating this grid is easy and fun, as the behavior is controlled simply through choosing the right name for keys:
dicts = [{"ID": 0, "key?": True, "price":0.00,"tags" : "aaa bbb ccc","_foo":"bar"},
{"ID": 1, "key?": False, "price":2.00,"tags" : "bbb ccc ddd","_foo":"bar"},
{"ID": 2, "key?": True, "price":3.00,"tags" : "ccc ddd eee","_foo":"bar"},
{"ID": 3, "key?": False, "price":4.00,"tags" : "ddd eee fff","_foo":"bar"},
{"ID": 4, "key?": True, "price":5.00,"tags" : "eee fff ggg","_foo":"bar"}]
#create and show a test window
win = gtk.Window(gtk.WINDOW_TOPLEVEL)
win.set_title("DictionaryGrid Test Window")
win.connect("destroy",gtk.main_quit)
win.show()
#create a top level container
vbox = gtk.VBox(False, False)
vbox.show()
win.add(vbox)
#create a test widget with test database values
grid = DictionaryGrid(dicts)
My accomplishments today were:
- Started implementing the "conventions" system. A key of "id", will be automatically set to an integer column, for proper sorting.
- A key of "price" will automatically be formatted as currency, and will also be presented in a spinner control. I will change the id columns to use the spinner as well, so that all numerical columns will automatically use spinners.
About Quidgets
Quickly + Widgets = Quidgets
There is a Launchpad Project for Quidgets
The most up to date changes are in the Quidgets Trunk Branch
You can install Quidgets from the my PPA
ReplyDeletethis is Brother Printer Drivers Support and brother printer drivers download , update brother printer driver and brother drivers printer
----------------------------
this is Brother Printer Support Assistant and brother printer software
this is Brother Printer Offline Fix and brother printer offline fix windows 10
ReplyDelete---------------------------------------
this is Brother Airprint Printer Not Found as well as brother printer airprint not working