#!/usr/bin/python3
# -*- coding: utf8 -*

import sys

# Fix for file paths errors
import os
PATH = os.path.dirname(os.path.realpath(__file__))

# Import other files from the project
from game import Game
from idlerpg import IdleRPG
from logger import log, story

# Import Graphic Lib
from PyQt5.QtWidgets import (QApplication, QMainWindow, QToolTip, QPushButton, 
    QWidget, QStackedWidget, QHBoxLayout, QVBoxLayout, QLabel, QLineEdit, 
    QFormLayout, QDockWidget, QListWidget, QListWidgetItem, QAction, qApp, 
    QButtonGroup, QProgressBar, QSpacerItem)
from PyQt5.QtCore import QTimer, Qt
from PyQt5.QtGui import QFont, QIcon

def main():
    # instatiate the game object
    game = Game()

    # initiate window
    app = QApplication(sys.argv)
    app.setStyleSheet("")
    idlerpg = IdleRPG(game)

    # setup timer for the game tick (1 tick per 2 seconds)
    timer = QTimer()
    timer.start(1500)
    timer.timeout.connect(idlerpg.tick)

    idlerpg.show() 

    # run the main loop
    sys.exit(app.exec_())

if __name__ == '__main__':

    log.info("========== STARTING NEW SESSION ============")
    main()

#EOF
#!/usr/bin/python3
# -*- coding: utf8 -*

import sys

# Fix for file paths errors
import os
PATH = os.path.dirname(os.path.realpath(__file__))

# Import other files from the project
from game import Game
from idlerpg import IdleRPG
from logger import log, story

# Import Graphic Lib
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QTimer

def main():
    # instatiate the game object
    game = Game()

    # initiate window
    app = QApplication(sys.argv)
    app.setStyleSheet("")
    idlerpg = IdleRPG(game)

    # setup timer for the game tick (1 tick per 2 seconds)
    timer = QTimer()
    timer.start(1500)
    timer.timeout.connect(idlerpg.tick)

    idlerpg.show() 

    # run the main loop
    sys.exit(app.exec_())

if __name__ == '__main__':

    log.info("========== STARTING NEW SESSION ============")
    main()

#EOF
Remove a bunch of unnecessary import
FIX: Remove a bunch of unnecessary import
