MIME Type Browser Example¶
A Python application that demonstrates the analogous example in C++ MIME Type Browser Example
"""PySide6 port of the corelib/mimetypes/mimetypebrowser example from from Qt"""
import argparse
import sys
from mainwindow import MainWindow
from PySide6.QtWidgets import QApplication
if __name__ == "__main__":
app = QApplication(sys.argv)
parser = argparse.ArgumentParser(description="MimeTypesBrowser Example")
parser.add_argument("-v", "--version", action="version", version="%(prog)s 1.0")
args = parser.parse_args()
mainWindow = MainWindow()
availableGeometry = mainWindow.screen().availableGeometry()
mainWindow.resize(availableGeometry.width() / 3, availableGeometry.height() / 2)
mainWindow.show()
sys.exit(app.exec())
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.