maya 2010, linux.  I ran your code and it gave me the same problem as
mine.  The actual name of the window on the taskbar is 'window1',
when it is created via mel the window title is displayed correctly on
the taskbar.

 -G

On Jan 14, 7:15 pm, Seth Gibson <[email protected]> wrote:
> Can you give a bit more context?  I tried this:
>
> import maya.cmds as cmds
>
> class winTest(object):
>
> def __init__(self):
>
> self.windowTitle = 'This is my class window'
>
> self.WindowHandle = cmds.window(title=self.windowTitle,
> maximizeButton=False, widthHeight=(300,300))
>
> cmds.showWindow(self.WindowHandle)
>
> and it works fine.
>
> On Fri, Jan 14, 2011 at 11:51 AM, ranxerox <[email protected]> wrote:
>
> >  hey all,  I just noticed an annoying behaviour and was wondering if there
> > was a solution.  I have 2 scripts which I wrote, 1 mel, 1 python.  To create
> > the main window in mel I use this:
>
> > window -title "myWindowTitle" -wh 400 300  -mxb false myFunction;
>
> >  to create the window in python I use this:
>
> > self.WindowHandle = cmds.window(title=self.windowTitle,
> > maximizeButton=False, widthHeight=(300,300))
>
> > the window title for the python script is listed as 'window1',  the window
> > title for the mel script is listed correctly as 'myWindowTitle'...  is there
> > something I'm missing here or is this functionality missing from the python
> > side of things.
>
> >  thanks
>
> >  -G
>
> > --
> >http://groups.google.com/group/python_inside_maya
>
>

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

Reply via email to