[Maya-Python] Drag-Drop, draw on Maya's viewport

2013-07-30 Thread illunara
Hi everybody This is one part in our project, our goal is create a tool which allow user can draw some path on viewport (If possible)then use it to select element (Faces, vertex, edge). So like the title said, what i want to ask is, can i change some Maya's behavior (like drag-drop on view

Re: [Maya-Python] styleSheet on pushButton problem

2013-07-30 Thread Justin Israel
I would wager is it because signals emitted and received within the same thread use a direct connection, which means that the button has probably not fully completed its "clicked" state until it returns back to the event loop. You could either called QApplication.processEvents() in your slot before

[Maya-Python] styleSheet on pushButton problem

2013-07-30 Thread drchickins
hi all, having a small issue with a simple pushButton change of color. so the stylesheet is this color = QtGui.QColor() color.setGreen(125) self.create_button.setStyleSheet( "QPushButton:checked { background-color: %s }" % color.name()) then i have a callba

Re: [Maya-Python] Question on PyQt Layouts

2013-07-30 Thread Justin Israel
No problem (and thanks). If you get hung up, post some example code and we can look at it from there. I have some similar stuff with "pill boxes" where the custom widgets are in a vertical scrolling layout and can be individually collapsed to just their title bars. On Jul 31, 2013 9:04 AM, "Joe Wei

Re: [Maya-Python] Question on PyQt Layouts

2013-07-30 Thread Joe Weidenbach
Thanks Justin-- Great videos on CMIVFX btw :) Sent from my iPhone On Jul 30, 2013, at 5:11 AM, Justin Israel wrote: > The layouts have the ability to set an alignment : > http://doc-snapshot.qt-project.org/4.8/qlayout.html#setAlignment > > You can align the items to the top. Also you can play

Re: [Maya-Python] dynamic building a pySide/pyQT ui

2013-07-30 Thread Justin Israel
Not really sure how to answer this completely, but you have many options to make a UI driven by a config. I have a few applications I maintain that have this feature. Some have a form of a declarative UI structure that gets parsed and translated into custom widgets. Some just define prefs to apply

Re: [Maya-Python] Question on PyQt Layouts

2013-07-30 Thread Justin Israel
The layouts have the ability to set an alignment : http://doc-snapshot.qt-project.org/4.8/qlayout.html#setAlignment You can align the items to the top. Also you can play with making your expanded widgets size policy set to mininumExpanding On Jul 30, 2013 8:52 PM, "Joe Weidenbach" wrote: > Hello

[Maya-Python] DG node UI

2013-07-30 Thread tawfiq injass
Hi every body how can i separate DG node attributes into ScrollLayout using python ? please see the attached image. Thank you -- 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 re

[Maya-Python] dynamic building a pySide/pyQT ui

2013-07-30 Thread Todd Widup
how easy is it to dynamically add elements to a UI? I have been developing a system and I am looking to expand the UI out a LOT. the problem is currently, it updates the UI based off an external text file..that has a few user defined options in it. I want these options to show up in the UI, but

[Maya-Python] Question on PyQt Layouts

2013-07-30 Thread Joe Weidenbach
Hello again all, I'm trying to set up an accordion-style UI in PyQt; Meaning that I have a series of buttons that when clicked, will expand the contents below them. This is much like the old frameLayout in ELF. I've got the widgets working fine as far as expanding and contracting, but the