File: __init__.py

package info (click to toggle)
mgltools-opengltk 1.5.7~rc1%2Bcvs.20140424-1
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 8,588 kB
  • ctags: 38,392
  • sloc: ansic: 98,617; python: 3,813; cpp: 1,943; sh: 1,332; tcl: 1,127; makefile: 64
file content (18 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from Tkinter import _default_root, Tk

if _default_root is None:
	_default_root = Tk()
        _default_root.withdraw()
        
#toglInstallDir = '/tsri/python/sun4SunOS5/lib/ '
#path = _default_root.tk.globalgetvar('auto_path')
#_default_root.tk.globalsetvar('auto_path', (toglInstallDir,) + path )

#_default_root.tk.call('lappend', 'auto_path',
#                      '/mgl/ms1/python/dev/opengltk/OpenGL/Tk/')
#
#_default_root.tk.call('package', 'require', 'Togl')
#
#                      os.path.join( \
#				  os.path.dirname(__file__), \
#				  sys.platform + "-tk" + _default_root.getvar("tk_version")))