Re: [Maya-Python] QPushButton hover

2018-08-20 Thread osmeldu
all right. As soon as I get home I`m gonna go line by line with this answer to fix it. Im trying to practice every night, when possible. Thanks. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this

Re: [Maya-Python] QPushButton hover

2018-08-20 Thread Justin Israel
On Tue, Aug 21, 2018, 7:38 AM wrote: > > Hi Justin. I have 2 questions tho. You mention that I am operating in my > custom CustomButtom logic, but when I create a button, I have the text from > that custom class. If it`s picking up the default QPushButton class, why I > have the text?I think I`m

Re: [Maya-Python] QPushButton hover

2018-08-20 Thread osmeldu
@Marcus Hello Marcus. Thanks for taking some time to answer back. Yes, this should work with me too, but looks like the problem I have is that I am calling my customButtom class from inside another class, then, when I call the whole thing in maya, it gets garbage collected. Osmel. -- You

Re: [Maya-Python] QPushButton hover

2018-08-20 Thread osmeldu
Hi Justin. I have 2 questions tho. You mention that I am operating in my custom CustomButtom logic, but when I create a button, I have the text from that custom class. If it`s picking up the default QPushButton class, why I have the text?I think I`m confused about this. The second thing is

Re: [Maya-Python] Re: How to embed modelPanel to a pyqt ui (again) ?

2018-08-20 Thread Timothy Kim
Thank Justin. I don't have access to my code right now to check the differences between mine and this one but this code works perfectly fine. Thanks again. From: python_inside_maya@googlegroups.com on behalf of Justin Israel Sent: Sunday, August 19, 2018

Re: [Maya-Python] QPushButton hover

2018-08-20 Thread Marcus Ottosson
but I still have no results when my cursor hovers on top of the button: This works for me. from PySide import QtGui class CustomButtom(QtGui.QPushButton): def enterEvent(self, event): print("Enter") def leaveEvent(self, event): print("Leave") button = CustomButton()

Re: [Maya-Python] QPushButton hover

2018-08-20 Thread Justin Israel
On Mon, Aug 20, 2018, 2:40 PM wrote: > here is the code: > > https://pastebin.com/tii0rR1M > > thanks again. > Ok now I see your problem. Thanks for providing a more complete example. You have defined your custom event logic on your CustomButtom class, but then you have your