2

I'm a new in Python. I would like to know can I create good interface on python, something like WPF? I didn't find any glass effect with PyQt. It's really important for my decision. Thanks.

I'm sorry that I didn't give a lot of details. I need to port WPF app to python. The main goal I still need a good UI. Can I make something like this http://www.codeproject.com/KB/silverlight/SilverlightGlassOrbButton.aspx?msg=3170079 on python? Can I use different styles for mouseover and normal state?

Artyom
  • 439
  • 1
  • 5
  • 9

5 Answers5

3

Glass effect is probably a Qt skin and has nothing to do with Python in particular. People say that there's a tutorial for Qt skinning. I failed to quickly google a ready-made glass-like skin, though.

Community
  • 1
  • 1
9000
  • 39,899
  • 9
  • 66
  • 104
2

Also, in the new QT RC there is a new support system for GUI related stuff. QML it is called, and examples can be found here. I do not know if it alreade wrapped in PyQT but I suppose it is possible to use it in combination with PyQT.

example glowy things flickr example

bastijn
  • 5,841
  • 5
  • 27
  • 43
1

If glass effect = transparency, then Qt supports this, but it requires a special flag set on the window. See http://doc.qt.nokia.com/qq/qq16-background.html for some examples.

If you want a blurred background, then I doubt it can be done as easily, since not many GUI-frameworks that Qt supports do compositing like Vista & Win7, so it's probably hard to abstract into a cross-platform toolkit.

But simpler things might be possible, and with QGraphicsScene, you can do a lot of these things yourself (but not w.r.t. the window's background, IIUC).

Macke
  • 24,812
  • 7
  • 82
  • 118
  • I'm sorry that I didn't give a lot of details. I need to port WPF app to python. The main goal I still need a good UI. Can I make something like this http://www.codeproject.com/KB/silverlight/SilverlightGlassOrbButton.aspx?msg=3170079 on python? Can I use different styles for mouseover and normal state? – Artyom Mar 10 '11 at 08:54
  • @Artyom: Yes, `QStyle` allows you to draw your button differently depending on state, so that should be possible. – Macke Mar 10 '11 at 10:41
0

If you have no luck with Qt, wxPython can do it. See How to draw a transparent frame in wxpython.

Community
  • 1
  • 1
Martin Stone
  • 12,682
  • 2
  • 39
  • 53
0

You can check out the fluent app library

Coder
  • 1
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 02 '22 at 09:15
  • If you have a new question, please ask it by clicking the [Ask Question](https://stackoverflow.com/questions/ask) button. Include a link to this question if it helps provide context. - [From Review](/review/late-answers/33061359) – coturiv Nov 04 '22 at 09:43