Menu

#16 Only create Tk root if necessary...

v2.1
open
nobody
Tk (1)
4
2003-05-18
2003-05-18
No

Importing the OpenGL.Tk module currently automatically
creates a Tkinter root. Would be nice if this was only
done if there is no root when creating an actual
widget. Work-around is to do:

from Tkinter import *
my_root = Tk()
from OpenGL.Tk import *

But that's sub-optimal.

Discussion

  • Rene Liebscher

    Rene Liebscher - 2003-05-19

    Logged In: YES
    user_id=28463

    Maybe moving some initialization code to first class use
    will do.
    Please check this.

     
  • Rene Liebscher

    Rene Liebscher - 2003-05-19

    diff to init.py of OpenGL.Tk

     

Log in to post a comment.