ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

# Error: 'module' object has no attribute 'dockControl' #246

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.
I am trying to run a project that successfully runs on Autodesk Maya 2011, but 
on a computer with Ubuntu Linux 10.10 and Maya 2009 with the pymel extension 
downloaded from here (both 1.0.3 and 1.0.2), but it can't find the attribute 
dockControl, which, i can't either. It says in the docs it should be located in 
the core windows.py, but I can't find it there..

Some code of what i'm trying to do (cut from a longer set)

import pymel.core as pm

pm.loadPlugin(PLUGPATH) # PLUGPATH is a path to the other py-file

class vHelixController():
    def __init__(self):
        self.win = pm.window(title="Window title")

        allowedAreas = ['right', 'left']
        pm.dockControl( area='right', content=self.win, 
                                  label='Label',  allowedArea=allowedAreas ) # this is where the problem is

Thanks in regards!
Johan

Original issue reported on code.google.com by gar...@gmail.com on 30 May 2011 at 4:18

GoogleCodeExporter commented 9 years ago
Is this really an error?  PyQt is not used in 2009, thus, there is no such 
thing as dockControl?

Original comment by amor...@gmail.com on 30 May 2011 at 6:51

GoogleCodeExporter commented 9 years ago
Oh, so it's not supposed to work at all? Then, sorry for the inconvenience.

//Johan

Original comment by gar...@gmail.com on 30 May 2011 at 7:17