mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Move all tk/tcl stuff to the 'tk' package, fix tcl file location
This commit is contained in:
parent
350b2aaf3c
commit
ac3ba58e55
@ -162,9 +162,9 @@ class morepy(package):
|
||||
'DocXMLRPCServer', 'audioop', 'imageop', 'aifc', 'sunau',
|
||||
'wave', 'chunk', 'colorsys', 'imghdr', 'sndhdr',
|
||||
'ossaudiodev', 'gettext', 'locale', 'cmd', 'shlex',
|
||||
'Tkinter', 'Tix', 'ScrolledText', 'turtle', 'pydoc',
|
||||
'doctest', 'unittest', 'test', 'test.test_support', 'bdb',
|
||||
'pdb', 'hotshot', 'timeit', 'trace', 'sys', '__builtin__')
|
||||
'pydoc', 'doctest', 'unittest', 'test',
|
||||
'test.test_support', 'bdb', 'pdb', 'hotshot', 'timeit',
|
||||
'trace', 'sys', '__builtin__')
|
||||
module('future_builtins', 'warnings', 'contextlib', 'abc',
|
||||
'atexit', 'traceback', '__future__', 'gc', 'inspect',
|
||||
'site', 'user', 'fpectl', 'code', 'codeop', 'rexec',
|
||||
|
@ -33,17 +33,20 @@ class tk(package):
|
||||
require('panda3d')
|
||||
|
||||
module('Tkinter', '_tkinter', required = True)
|
||||
module('Tkconstants', 'Tkdnd', 'tkColorChooser',
|
||||
'tkCommonDialog', 'tkFileDialog', 'tkFont',
|
||||
'tkMessageBox', 'tkSimpleDialog')
|
||||
module('Tkconstants', 'Tkdnd', 'Tix', 'ScrolledText', 'turtle',
|
||||
'tkColorChooser', 'tkCommonDialog', 'tkFileDialog',
|
||||
'tkFont', 'tkMessageBox', 'tkSimpleDialog')
|
||||
module('direct.showbase.TkGlobal',
|
||||
'direct.tkpanels',
|
||||
'direct.tkwidgets')
|
||||
|
||||
try:
|
||||
from Tkinter import Tcl
|
||||
dir = Filename.fromOsSpecific(Tcl().eval("info library"))
|
||||
file(Filename(dir, "*.tcl"), extract = True)
|
||||
tcl = Tcl()
|
||||
dir = Filename.fromOsSpecific(tcl.eval("info library"))
|
||||
ver = tcl.eval("info tclversion")
|
||||
|
||||
file(Filename(dir, "*.tcl"), newDir = 'lib/tcl' + ver, extract = True)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user