PDA

View Full Version : GUI Tkinter grid manager (sticky tag)


Skeletor1
07-24-2012, 11:25 AM
I'm trying to clean up my GUI and I read about using the grid manager. I ran in to a problem when using the "sticky" tag and I have so far been unable to find a solution.

Code:

btnAdd = tk.Button(app, text="Add selected objects", command=addObjects)
btnAdd.grid(row=1, column=2, sticky=N+E+W+S)

Error:

btnAdd.grid(row=1, column=2, sticky=N+E+W+S) NameError: name 'N' is not defined

Imports:

import maya.cmds as mc
import Tkinter as tk
import math as m
import tkColorChooser as tkC

Skeletor1
07-25-2012, 12:03 AM
No one knows what's going on?

CGTalk Moderation
07-25-2012, 12:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.