import sys

from PyQt5 import QtGui
from PyQt5.QtCore import QEvent, QPoint, Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import (QApplication, QDialog, QGroupBox, QMainWindow,
                             QTabWidget, QVBoxLayout, QWidget)

from sim2d_game_analyzer.fmdb_tab import FMDBTab


class MainWindow(QMainWindow):
    title = "Sim2d Game Analyzer"
    top = 500
    left = 100
    width = 70*4
    height = 130*4

    def __init__(self):
        QMainWindow.__init__(self)
        self.setGeometry(self.screen().geometry())
        self.setWindowTitle(self.title)
        self.setWindowIcon(QIcon("sim2d_game_analyzer/figures/icon.png"))
        vbox = QVBoxLayout()
        tabWidget = QTabWidget()

        tabWidget.setFont(QtGui.QFont("Sanserif", 12))
        self.fmdb_tab = FMDBTab()
        tabWidget.addTab(self.fmdb_tab, FMDBTab.NAME)
        vbox.addWidget(tabWidget)
        wid = QWidget(self)
        self.setCentralWidget(wid)
        wid.setLayout(vbox)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    mainwindow = MainWindow()
    sys.exit(app.exec())

[((1026, 1048), 'PyQt5.QtWidgets.QApplication', 'QApplication', (['sys.argv'], {}), '(sys.argv)\n', (1038, 1048), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((464, 490), 'PyQt5.QtWidgets.QMainWindow.__init__', 'QMainWindow.__init__', (['self'], {}), '(self)\n', (484, 490), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((671, 684), 'PyQt5.QtWidgets.QVBoxLayout', 'QVBoxLayout', ([], {}), '()\n', (682, 684), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((705, 717), 'PyQt5.QtWidgets.QTabWidget', 'QTabWidget', ([], {}), '()\n', (715, 717), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((798, 807), 'sim2d_game_analyzer.fmdb_tab.FMDBTab', 'FMDBTab', ([], {}), '()\n', (805, 807), False, 'from sim2d_game_analyzer.fmdb_tab import FMDBTab\n'), ((910, 923), 'PyQt5.QtWidgets.QWidget', 'QWidget', (['self'], {}), '(self)\n', (917, 923), False, 'from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QMainWindow, QTabWidget, QVBoxLayout, QWidget\n'), ((609, 654), 'PyQt5.QtGui.QIcon', 'QIcon', (['"""sim2d_game_analyzer/figures/icon.png"""'], {}), "('sim2d_game_analyzer/figures/icon.png')\n", (614, 654), False, 'from PyQt5.QtGui import QIcon\n'), ((745, 772), 'PyQt5.QtGui.QFont', 'QtGui.QFont', (['"""Sanserif"""', '(12)'], {}), "('Sanserif', 12)\n", (756, 772), False, 'from PyQt5 import QtGui\n')]