Skip to content

Instantly share code, notes, and snippets.

@ferdiunal
Created July 9, 2016 18:49
Show Gist options
  • Save ferdiunal/25124d84f0b784e8a7e02595fba3fdc6 to your computer and use it in GitHub Desktop.
Save ferdiunal/25124d84f0b784e8a7e02595fba3fdc6 to your computer and use it in GitHub Desktop.
Pyqt5 QDialog simge durumuna küçült, tam ekran yap. butonları
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog
class Editor(QDialog):
def __init__(self,parent=None,path=None):
super().__init__(parent)
self.path=path
self.initUI()
def initUI(self) :
self.setWindowFlags(self.windowFlags() | Qt.WindowMinimizeButtonHint | Qt.WindowMaximizeButtonHint | Qt.WindowStaysOnBottomHint)
self.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment