here is how to make a question message box with three different buttons.
For the arguments: parent, title, question, buttons, default button. this
example is not from a softimage plugin but I hope it helps though.
msgBox = QMessageBox()
msgboxReturn = msgBox.question( self, 'Title', 'Question?',
Hello!!
For the size of your button I think you could try with
box.setStyleSheet('QPushButton{padding: 100px;}')
or
box.setStyleSheet('QPushButton{height: 100px; width: 100px}')
I don't know if you can manage it without playing with the style sheets.
Bye
What that does is allows you to add a QPushButton in place of a standard
button, and allows you to specify the buttons role in the QMessageBox
Button Roles:
http://qt-project.org/doc/qt-4.8/qmessagebox.html#ButtonRole-enum
hope that is more along the lines of what you were trying to achieve.
On
Big thanks to Ana and Steve for helping me sort through some of the
trouble I was having. Much tighter stuff now. I'm attaching the latest
version (1.12) for whoever is interested.
*Tim Crowson
*/Lead CG Artist/
*Magnetic Dreams Animation Studio, Inc.
*2525 Lebanon Pike, Building C.
Thank you Tim for share your code :)
Miquel Campos
*Character Animation TD
* www.akaosaru.com
thanks tim!
once this is 'finished' it would be great to see it on rray.de/xsi and link
on the github page as projects using the plugin. a great, simple example.
s
On Mon, Aug 27, 2012 at 11:55 AM, Miquel Campos miquel.cam...@gmail.comwrote:
Thank you Tim for share your code :)
Right on. Still two things that need smoothing out, although they're
strictly cosmetic:
1) the funky FileBrowser
2) the teeny tiny 'Ok' button in the 'About' dialog. I still don't know
enough about Qt to fix that. I could use a brute force method by
creating a new class for it, which would
take your time!
On Mon, Aug 27, 2012 at 12:10 PM, Tim Crowson
tim.crow...@magneticdreams.com wrote:
Right on. Still two things that need smoothing out, although they're
strictly cosmetic:
1) the funky FileBrowser
2) the teeny tiny 'Ok' button in the 'About' dialog. I still don't know
Hey Tim,
Will take a look at some code when im home later, and see if I can help you
with making the button bigger.
On Tue, Aug 28, 2012 at 5:12 AM, Steven Caron car...@gmail.com wrote:
take your time!
On Mon, Aug 27, 2012 at 12:10 PM, Tim Crowson
tim.crow...@magneticdreams.com wrote:
Nice tool also, its great seeing more and moer people releasing tools for
softimage :) keep the community healthy and push soft! :D
On Tue, Aug 28, 2012 at 11:16 AM, Simon Anderson
simonbenandersonl...@gmail.com wrote:
Hey Tim,
Will take a look at some code when im home later, and see if I
10 matches
Mail list logo