mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
direct: Remove a remaining sys.version_info check
This commit is contained in:
parent
707ea089cb
commit
6c8066bb61
@ -63,12 +63,9 @@ def popupControls(self, tl = None):
|
||||
import math
|
||||
# Don't use a regular import, to prevent ModuleFinder from picking
|
||||
# it up as a dependency when building a .p3d package.
|
||||
import importlib, sys
|
||||
import importlib
|
||||
EntryScale = importlib.import_module('direct.tkwidgets.EntryScale')
|
||||
if sys.version_info >= (3, 0):
|
||||
tkinter = importlib.import_module('tkinter')
|
||||
else:
|
||||
tkinter = importlib.import_module('Tkinter')
|
||||
tkinter = importlib.import_module('tkinter')
|
||||
|
||||
if tl == None:
|
||||
tl = tkinter.Toplevel()
|
||||
|
Loading…
x
Reference in New Issue
Block a user