Great.I just read in this same forum that duplicated Tkinter GUI may
crash maya...
So I guess it must be a bug.The thing is that,it also crash if I have
only 1 GUI open and
I evaluate just the line:
charName=charNameEntry.get()
Am I the only one to use Tkinter here??

On 4 dic, 02:28, rudi <[email protected]> wrote:
> Problem found.It is caused by Tkinter.I create my UI like so:
>
> __________________________________________________________________________
>
> #============================== MODULES
> =================================#
> import Tkinter as tk
> import Pmw as pmw
> from Tkinter import *
> from Pmw import *
>
> #============================== MAIN WINDOW
> =============================#
> #window
> rigBuilderUI=tk.Tk()
> rigBuilderUI.geometry("395x520")
>
> #================================ WIDGETS ===========================#
> #----charNameEntry
> charNameEntry=Entry(width=22,borderwidth=1)
> charName=charNameEntry.get()
>
> #============================ PACKING & PLACING
> =============================#
> #charNameCrp
> charNameEntry.pack()
>
> #=============================== EJECUTO UI
> ===============================#
> rigBuilderUI.mainloop()
> ______________________________________________________________________________
>
> If I run that one time in maya,no problem.
> If run it a seconde time,the system crashes.
> It looks like the problem is caused by the .mainloop()
>
> Any suggestions?
> Thx
>
> On 3 dic, 23:42, rudi <[email protected]> wrote:
>
> > Great...it is happening with every widget.I have a counter widget
> > named spineCounter.Guess what,
> > If i do spineCounter.get() maya also crash.
>
> > On 3 dic, 23:20, rudi <[email protected]> wrote:
>
> > > Hi again...I think I know the problem.I don´t it has something to do
> > > with callback.Something is wrong with the get().I have:
>
> > > #----charNameGrp
> > > charNameGrp=pmw.Group(setupTab,tag_text="character's
> > > name",ring_borderwidth=2,tag_font=("Helvetica", "8", "bold"))
> > >     #----charNameEntry
> > > charNameEntry=Entry(charNameGrp.interior(),width=22,borderwidth=1)
> > > charName=charNameEntry.get()
>
> > > if I do "print charName" nothing is printed because the entry is
> > > empty.Okey then,now that my UI is open I wrigth in the entry "BOB".
> > > When I do now "print charName" instead of getting BOB printed, I have
> > > maya crashing...Is it constantly looping trough something to get that
> > > crash??
> > > I can get the most simple thing done.Woww,that´s a good feeling.
>
> > > On 3 dic, 22:52, Chris G <[email protected]> wrote:
>
> > > > Yes, you can do that using a script job.  You probably want to have
> > > > your script job push the info onto a queue which your gui thread then
> > > > checks and does stuff with.
>
> > > > -Chris
>
> > > > On Thu, Dec 3, 2009 at 4:42 PM, johnvdz <[email protected]> 
> > > > wrote:
> > > > > i've been playing with pyQT GUIs myself but i was wondering if you can
> > > > > call back from your maya Scene to your pyqt Gui ie select a node in 
> > > > > maya
> > > > > and it also selects the same object in your character control Gui?
> > > > > anyone managed to do this? i gather this will be more capable when its
> > > > > fully implemented into maya.
>
> > > > > john
>
> > > > > rudi wrote:
> > > > >> Ok.I am so "smart" that hay imported al pymel during the GUI built
> > > > >> with Tkinter.So everything was mixed.
> > > > >> Anyway,getting back to the original problem,now using callback, the
> > > > >> external script is well executed,but the entry text is ignored
> > > > >> So I still get the joint created with no name....So the makeSkeleton
> > > > >> script should get the value of the entry.I have added in the
> > > > >> makeSkeleton code:
> > > > >> charName=charNameEntry.get()
>
> > > > >> But of course,now the charNameEntry is not defined.
>
> > > > >> On 3 dic, 00:10, rudi hammad <[email protected]> wrote:
>
> > > > >>> It is Tkinter class(I think..).I didn´t but the wholes script 
> > > > >>> because it is very long.
> > > > >>> I use Tkinter because if someday the sudio I´ll work in changes 
> > > > >>> from maya to xsi for example,I´ll still be able to built UI.¬¬ yes, 
> > > > >>> I am lazy.
> > > > >>> I got:
> > > > >>> creatCharButton <type 'instance'>
>
> > > > >>> From: [email protected]
> > > > >>> To: [email protected]
> > > > >>> Subject: Re: [Maya-Python] Re: Comunication between GUI and 
> > > > >>> external scripts?
> > > > >>> Date: Wed, 2 Dec 2009 14:41:59 -0800
>
> > > > >>> is Button a pymel or tkinter Button class?  you never sent along 
> > > > >>> the whole script so i'm assumed that it was a pymel Button class 
> > > > >>> and i don't believe that they have a 'place' method.
> > > > >>> you can find out by doing:
> > > > >>> print `createCharButton`, type(createCharButton)
>
> > > > >>> -chad
>
> > > > >>> --
>
> > > > >>>http://groups.google.com/group/python_inside_maya
> > > > >>> _________________________________________________________________
> > > > >>> Deja que Sietes te enseñe todo los secretos de 
> > > > >>> Windowshttp://www.sietesunpueblodeexpertos.com/
>
> > > > > --
> > > > >http://groups.google.com/group/python_inside_maya
>
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to