File: autoexec.gaby

package info (click to toggle)
gaby 2.0.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,148 kB
  • ctags: 3,101
  • sloc: ansic: 48,660; sh: 8,710; python: 1,161; makefile: 951; perl: 265; sed: 93; xml: 89; sql: 25
file content (21 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# python

# this script is an alternative to the misc section of desc.gaby for people
# lucky enough to have Python.

from gaby import *

# we do nothing if the misc section isn't empty (ie if there are already two
# windows)

if len(get_windows_list()) != 2:

	main_win = get_main_window()
	main_win.resize(400, 500)
	
	st = get_subtable_by_name('Phone Book')
	xlist_win = st.create_new_window( 'xlist' )
	
	main_win.add_bound_window(xlist_win)
	xlist_win.add_bound_window(main_win)