I am trying to create a rounded QPushButton in pythonic format.

Read some solutions which are in C++ and while trying to convert them in 
Python terms, it does not seems to be working.

btn = QtGui.QPushButton()
btn.setAttribute(QtCore.Qt.WA_TranslucentBackground)
btn.setStyleSheet(
    "border: 1px solid black;"
    "border-radius: 150px;"
    "color: lightGray; "
    "font-size: 35px;"
)

There are indeed some changes effected on the button but I am still seeing 
sharp edges (squarish).

Wondering if anyone has attempt this?

P.S - If possible, I would not want to create a class just for the sake of 
creating a circular button

-- 
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/04810283-74c7-4a36-b938-b5ae19bf4c54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to