File: 00_tool_calendar.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 (22 lines) | stat: -rw-r--r-- 444 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
"""Bricks/toolbutt calendar

icons can be added directly to the IconFactory and called as a normal stock
image as in tb=cal

I Have not understood how to use themes, thought
"""
import os
from sqlkit import layout
from sqlkit.layout import misc

icon_path = os.path.join( os.path.dirname(layout.__file__), 'cal15.png')
misc.add_stock_icons()

lay = """
   {O tb=sk-calendar tb=gtk-new }
   l=esempio_calendario
"""

l=Layout(lay)
w = l.show()