yeah even that errors with # TypeError: You need a shiboken-based type. #

shiboken is 1.1.1 as well
someone else pointed me to a wrapInstance function that handles sip and
shiboken, and it does the same.

and checking the type on QtGui.QMainWindow just before the shiboken call
its showing it as # Result: <type 'Shiboken.ObjectType'> #
had an office mate run it, and it just minimized his maya window.

hmm, maybe I will blow away my prefs and see


On Wed, Feb 12, 2014 at 2:02 PM, Nils Lerin <[email protected]> wrote:

> I run the following code successfully on Maya 2014 x64, did you check your
> version of shiboken? shiboken.__version__ says 1.1.1 for me
>
> import shiboken
> from PySide import QtGui
> import maya.OpenMayaUI as _OpenMayaUI
> ptr = _OpenMayaUI.MQtUtil.mainWindow()
> mainWindow = shiboken.wrapInstance(long(ptr), QtGui.QMainWindow)
> mainWindow.showMinimized()
>
>
> On Tue, Feb 11, 2014 at 10:44 AM, David Moulder 
> <[email protected]>wrote:
>
>> I've seen this before when PyQt4 has already been imported and your
>> mixing PySide in.  Be sure that  QtGui.QMainWindow is from the PySide
>> modules.  Print the __file__ attr for that before hand.
>>
>>
>> On Tue, Feb 11, 2014 at 9:26 AM, Justin Israel <[email protected]>wrote:
>>
>>> Yea im just lobbing Hail Mary guesses.
>>> On Feb 11, 2014 9:14 PM, "Todd Widup" <[email protected]> wrote:
>>>
>>>> Ill check it once I'm in the office tomorrow.
>>>>
>>>> They should be.  I can't think of any place it might get them from
>>>>
>>>> Sent from my tiny iPad with big fingers
>>>>
>>>>
>>>> On Feb 10, 2014, at 10:59 PM, Justin Israel <[email protected]>
>>>> wrote:
>>>>
>>>> I'm not really sure but I was getting at trying to see if you somehow
>>>> have an old shiboken you built, importing and being used with a newer
>>>> PySide.
>>>> If you print the shiboken and PySide modules do they both show up as
>>>> being located in the Maya site-packages?
>>>> On Feb 11, 2014 7:33 PM, "Todd Widup" <[email protected]> wrote:
>>>>
>>>>> Doesn't error on import so assuming its included.
>>>>>
>>>>> Directly in the script editor or on import
>>>>>
>>>>> Sent from my tiny iPad with big fingers
>>>>>
>>>>>
>>>>> On Feb 10, 2014, at 9:45 PM, Justin Israel <[email protected]>
>>>>> wrote:
>>>>>
>>>>> I forget. Do they include shiboken Python libs with 2014 or did you
>>>>> have to build them?
>>>>>
>>>>> Does it do this directly from the script editor when you just import
>>>>> PySide and Shiboken, and try to wrap the Maya main window?
>>>>>  On Feb 11, 2014 1:19 PM, "Todd Widup" <[email protected]> wrote:
>>>>>
>>>>>> #     return shiboken.wrapInstance(long(ptr), QtGui.QMainWindow)
>>>>>> # TypeError: You need a shiboken-based type. #
>>>>>>
>>>>>> I am getting this in Maya 2014 on ever pyside gui that I try.
>>>>>> Shiboken is importing fine...so what would cause this?
>>>>>>
>>>>>> --
>>>>>> Todd Widup
>>>>>> Creature TD / Technical Artist
>>>>>> [email protected]
>>>>>> [email protected]
>>>>>> www.toddwidup.com
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CABBPk35xE%3Du6zN8T1Z3XNyT29CxCb%2Bm1WSF1kTbyMhb7%3D0gAYQ%40mail.gmail.com
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3PDpDff_%2B4AavbrBn1jysSYC96OpYJRPJH8Ht5cRDMWg%40mail.gmail.com
>>>>> .
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/67B1DFE6-5759-4C45-9A9F-2FEB1834D655%40gmail.com
>>>>> .
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Python Programming for Autodesk Maya" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3FRWv5Lt41XgF8x%2Bsk6618PRcGoo9vMtx-g6jM2jPsBA%40mail.gmail.com
>>>> .
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Python Programming for Autodesk Maya" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/53852685-21BE-4C71-8F73-3A005E341E7C%40gmail.com
>>>> .
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>  To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3Ggj1%3Dovy64jbik8qK5Mfi%2BSFY1atcwVCOrh3NmtUvPA%40mail.gmail.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> *David Moulder*
>> Technical Animator / Artist
>> [email protected]
>> *Professional Profile
>> <http://uk.linkedin.com/pub/david-moulder/1/b12/b5a>*
>>
>> Mobile: +44 (0)7814033242
>> See who we know in 
>> common<http://www.linkedin.com/e/wwk/5748982/?hs=false&tok=3tztwkse1silw1> 
>> Want
>> a signature like 
>> this?<http://www.linkedin.com/e/sig/5748982/?hs=false&tok=3pwLU9-mBsilw1>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>  To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CABD4PkTsf2y71O-GPyb0YMMvgU-NVsOCWr8_8ExVh8UvtjT20Q%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAGkBUFesk7B5_M2dDsGF5kPaV%3D_tzv6DDYU_XmE8AKdSzVn9Eg%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Todd Widup
Creature TD / Technical Artist
[email protected]
[email protected]
www.toddwidup.com

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABBPk35JUMcvT_hb3L7i%2Bpw%2B7bF8DjcCNx7s1cwzEy6yyPRBHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to