title: PyQt4 : How can i toggle the "Stay On Top" behavior?
body: <p>I want to create an app, where the user will decide it the main window will stay always on top of the other apps.</p>
  
  <p>In PyQt4 it is easy to create a window that will stay always on top. This is covered here : <a href="https://stackoverflow.com/questions/1925015/pyqt-always-on-top">PyQt: Always on top</a></p>
  
  <p>What I want to have a widget (menu item, checkbox etc) that will toggle this behavior on or off. So far i haven't found a way to reset the original behavior.</p>
  
  <p>thank you</p>
  
  <p>UPDATE
  After the suggestion of İsmail 'cartman' Dönmez, I searched a bit more and I found an implementation of the WindowFlags example in PyQt4.</p>
  
  <p>It can be found <a href="http://blindvic.livejournal.com/9437.html" rel="nofollow noreferrer">here</a></p>