-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_window.py
51 lines (43 loc) · 1.9 KB
/
main_window.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# coding=utf-8
# -----------------
# file : main_window.py
# date : 2015/05/19
# author : Victor Zarubkin
# contact : [email protected]
# copyright : Copyright (C) 2015 Victor Zarubkin
# license : This file is part of GraphTutorial.
# :
# : GraphTutorial is free software: you can redistribute it and/or modify
# : it under the terms of the GNU General Public License as published by
# : the Free Software Foundation, either version 3 of the License, or
# : (at your option) any later version.
# :
# : GraphTutorial is distributed in the hope that it will be useful,
# : but WITHOUT ANY WARRANTY; without even the implied warranty of
# : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# : GNU General Public License for more details.
# :
# : You should have received a copy of the GNU General Public License
# : along with BehaviorStudio. If not, see <http://www.gnu.org/licenses/>.
# :
# : A copy of the GNU General Public License can be found in file LICENSE.
############################################################################
"""
"""
__author__ = 'Victor Zarubkin'
__copyright__ = 'Copyright (C) 2015 Victor Zarubkin'
__credits__ = ['Victor Zarubkin']
__license__ = ['GPLv3']
__version__ = '0.0.1' # this is last application version when this script file was changed
__email__ = '[email protected]'
############################################################################
from graphics_view import View
from PySide.QtCore import *
from PySide.QtGui import *
class MainWindow(QMainWindow):
def __init__(self, parent=None):
QMainWindow.__init__(self, parent)
self.setObjectName('MainWindow')
self.setMinimumSize(640, 480)
self.resize(800, 600)
self.setCentralWidget(View(self))