python - PyQt4 how to get button size -
i have seen this , this , have tried:
self.mybutton = qtgui.qpushbutton("click") = self.mybutton.size() print
things these, i'm still unable single button's size info. when print a
, returns size of parent window, think. returns size not button's size because return value big button's size. yes feel newbie question stuck this. i'd appreciate this, thank in advance.
you have parent widget or put in layout able calculate size. without specified parent, kind of lost...
...or rather thinks going window , uses minimum size window platform on.
hope helps.
Comments
Post a Comment