Hey Marcus,

Run this in Maya and it should illustrate my issue :)

https://gist.github.com/ben-hearn-sb/2b22edb528049d42fa65

On Friday, 8 January 2016 11:17:08 UTC+1, Marcus Ottosson wrote:
>
> A screenshot or something would really help communicate this problem more 
> clearly, ideally a gif/animation of it happening.
>
> On 8 January 2016 at 10:07, Ben Hearn <[email protected] 
> <javascript:>> wrote:
>
>> Hello all,
>>
>> Probably a bit of a simpler question but I am having some strange 
>> behaviour with my UI. I  have seen it before but I think I worked around it 
>> rather than actually figuring out why and how to stop it.
>>
>> So when I press the export button in my UI and the process is complete I 
>> alert the user with a QInformation box. 
>>
>> The problem arises when you press ok....the Export QPushButton stays 
>> depressed. It does not highlight anymore and when you press it again, 
>> although the functionality still works, it does not have the satisfying 
>> feel and look of being actually pressed.
>>
>> I changed the info box so it was a standard message box and set the box 
>> to be non-modal and this fixed it but it is not what I am after.
>>
>> Am I right in thinking it has something to do with the callback not 
>> returning properly?
>>
>> The push button line is very simple: 
>> *btnExportSelection.pressed.connect(self.exportSelected)*
>>
>> Cheers,
>>
>> Ben
>>
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/c1acad50-7232-41c0-b122-68cb03977320%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/c1acad50-7232-41c0-b122-68cb03977320%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *Marcus Ottosson*
> [email protected] <javascript:>
>

-- 
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/78971910-669a-4e04-b390-8de4da904ce9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to