# Path: XulDebugTool/utils/IconTool.py
# class IconTool(object):
#     def __init__(self):
#         super().__init__()
# 
#     def buildQIcon(iconName):
#         return QIcon(os.path.join('..', 'resources', 'images', iconName))
# 
#     def buildQPixmap(pixmapName):
#         return QPixmap(os.path.join('..', 'resources', 'images', pixmapName))


from PyQt5.QtWidgets import QMainWindow, QDesktopWidget
from XulDebugTool.utils.IconTool import IconTool
#!/usr/bin/python
# -*- coding: utf-8 -*-


"""
XulDebugTool

窗口基类, 设置窗口图标, 标题, 居中等属性

author: Kenshin
last edited: 2017.10.14
"""



class BaseWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.title = 'XulDebugTool'

    def initWindow(self):
        self.setWindowTitle(self.title)

# Path: XulDebugTool/utils/IconTool.py
# class IconTool(object):
#     def __init__(self):
#         super().__init__()
# 
#     def buildQIcon(iconName):
#         return QIcon(os.path.join('..', 'resources', 'images', iconName))
# 
#     def buildQPixmap(pixmapName):
#         return QPixmap(os.path.join('..', 'resources', 'images', pixmapName))


# Path: XulDebugTool/ui/BaseWindow.py
from PyQt5.QtWidgets import QMainWindow, QDesktopWidget
from XulDebugTool.utils.IconTool import IconTool

#!/usr/bin/python
# -*- coding: utf-8 -*-


"""
XulDebugTool

窗口基类, 设置窗口图标, 标题, 居中等属性

author: Kenshin
last edited: 2017.10.14
"""



class BaseWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.title = 'XulDebugTool'

    def initWindow(self):
        self.setWindowTitle(self.title)

        self.setWindowIcon(IconTool.buildQIcon('icon.png'))