File: 00_label.py

package info (click to toggle)
sqlkit 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,184 kB
  • sloc: python: 17,477; sql: 166; makefile: 95; xml: 23; sh: 11
file content (37 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Bricks/label con dim Table e VBox

a simple label is obtained w/ a l= flag
A label of fixed width is obtained with a trailing :width

"""

lay = """
   # comment
   l=label:<
   ae=short_lbl:2
   l=label2:>
   e=long_lbl
   ae=short_lbl2:2>
"""

lt = Layout(lay, opts='T', title="Table")
lt.prop('e=short_lbl','xalign',1)
#lt.xml("/tmp/g.glade")
#lt.prop('e=short_lbl2','max-length',2)
w = lt.show()
#print w.keys()

# lv = Layout(lay, opts='V', title="VBox")
# lv.prop('e=short_lbl2','max-length',2)
# lv.xml("/tmp/g.glade")
# w = lv.show()

w['Window'].show_all()

# tour.py si aspetta che ogni esempio inizializzi l, xml e ogni altra
# propriet`a viene fatta guardando l... quindi


l = lt 
#l = lv