1
1
# -*- coding: utf-8 -*-
2
2
3
- # Form implementation generated from reading ui file 'gui.ui'
3
+ # Form implementation generated from reading ui file 'gui.ui',
4
+ # licensing of 'gui.ui' applies.
4
5
#
5
- # Created by: PyQt4 UI code generator 4.12.1
6
+ # Created: Thu Dec 26 10:37:54 2019
7
+ # by: pyside2-uic running on PySide2 5.13.1
6
8
#
7
9
# WARNING! All changes made in this file will be lost!
8
10
9
- from PyQt4 import QtCore , QtGui
10
-
11
- try :
12
- _fromUtf8 = QtCore .QString .fromUtf8
13
- except AttributeError :
14
- def _fromUtf8 (s ):
15
- return s
16
-
17
- try :
18
- _encoding = QtGui .QApplication .UnicodeUTF8
19
- def _translate (context , text , disambig ):
20
- return QtGui .QApplication .translate (context , text , disambig , _encoding )
21
- except AttributeError :
22
- def _translate (context , text , disambig ):
23
- return QtGui .QApplication .translate (context , text , disambig )
11
+ from PySide2 import QtCore , QtGui , QtWidgets
24
12
25
13
class Ui_MainWindow (object ):
26
14
def setupUi (self , MainWindow ):
27
- MainWindow .setObjectName (_fromUtf8 ( "MainWindow" ) )
15
+ MainWindow .setObjectName ("MainWindow" )
28
16
MainWindow .resize (800 , 600 )
29
- sizePolicy = QtGui .QSizePolicy (QtGui .QSizePolicy .Fixed , QtGui .QSizePolicy .Fixed )
17
+ sizePolicy = QtWidgets .QSizePolicy (QtWidgets .QSizePolicy .Fixed , QtWidgets .QSizePolicy .Fixed )
30
18
sizePolicy .setHorizontalStretch (0 )
31
19
sizePolicy .setVerticalStretch (0 )
32
20
sizePolicy .setHeightForWidth (MainWindow .sizePolicy ().hasHeightForWidth ())
33
21
MainWindow .setSizePolicy (sizePolicy )
34
22
MainWindow .setMaximumSize (QtCore .QSize (800 , 600 ))
35
- self .centralwidget = QtGui .QWidget (MainWindow )
36
- self .centralwidget .setObjectName (_fromUtf8 ( "centralwidget" ) )
37
- self .gridLayout_2 = QtGui .QGridLayout (self .centralwidget )
38
- self .gridLayout_2 .setObjectName (_fromUtf8 ( "gridLayout_2" ) )
39
- self .gridLayout = QtGui .QGridLayout ()
40
- self .gridLayout .setObjectName (_fromUtf8 ( "gridLayout" ) )
41
- self .textEdit_input = QtGui .QTextEdit (self .centralwidget )
42
- self .textEdit_input .setObjectName (_fromUtf8 ( "textEdit_input" ) )
23
+ self .centralwidget = QtWidgets .QWidget (MainWindow )
24
+ self .centralwidget .setObjectName ("centralwidget" )
25
+ self .gridLayout_2 = QtWidgets .QGridLayout (self .centralwidget )
26
+ self .gridLayout_2 .setObjectName ("gridLayout_2" )
27
+ self .gridLayout = QtWidgets .QGridLayout ()
28
+ self .gridLayout .setObjectName ("gridLayout" )
29
+ self .textEdit_input = QtWidgets .QTextEdit (self .centralwidget )
30
+ self .textEdit_input .setObjectName ("textEdit_input" )
43
31
self .gridLayout .addWidget (self .textEdit_input , 1 , 0 , 1 , 1 )
44
- self .textedit_output = QtGui .QTextEdit (self .centralwidget )
45
- self .textedit_output .setObjectName (_fromUtf8 ( "textedit_output" ) )
32
+ self .textedit_output = QtWidgets .QTextEdit (self .centralwidget )
33
+ self .textedit_output .setObjectName ("textedit_output" )
46
34
self .gridLayout .addWidget (self .textedit_output , 1 , 1 , 1 , 1 )
47
- self .label = QtGui .QLabel (self .centralwidget )
48
- self .label .setObjectName (_fromUtf8 ( "label" ) )
35
+ self .label = QtWidgets .QLabel (self .centralwidget )
36
+ self .label .setObjectName ("label" )
49
37
self .gridLayout .addWidget (self .label , 0 , 0 , 1 , 1 )
50
- self .label_2 = QtGui .QLabel (self .centralwidget )
51
- self .label_2 .setObjectName (_fromUtf8 ( "label_2" ) )
38
+ self .label_2 = QtWidgets .QLabel (self .centralwidget )
39
+ self .label_2 .setObjectName ("label_2" )
52
40
self .gridLayout .addWidget (self .label_2 , 0 , 1 , 1 , 1 )
53
- self .button_output = QtGui .QPushButton (self .centralwidget )
54
- self .button_output .setObjectName (_fromUtf8 ( "button_output" ) )
41
+ self .button_output = QtWidgets .QPushButton (self .centralwidget )
42
+ self .button_output .setObjectName ("button_output" )
55
43
self .gridLayout .addWidget (self .button_output , 2 , 0 , 1 , 1 )
56
- self .button_markdown_output = QtGui .QPushButton (self .centralwidget )
57
- self .button_markdown_output .setObjectName (_fromUtf8 ( "button_markdown_output" ) )
44
+ self .button_markdown_output = QtWidgets .QPushButton (self .centralwidget )
45
+ self .button_markdown_output .setObjectName ("button_markdown_output" )
58
46
self .gridLayout .addWidget (self .button_markdown_output , 2 , 1 , 1 , 1 )
59
47
self .gridLayout_2 .addLayout (self .gridLayout , 0 , 0 , 1 , 1 )
60
48
MainWindow .setCentralWidget (self .centralwidget )
@@ -63,9 +51,9 @@ def setupUi(self, MainWindow):
63
51
QtCore .QMetaObject .connectSlotsByName (MainWindow )
64
52
65
53
def retranslateUi (self , MainWindow ):
66
- MainWindow .setWindowTitle (_translate ("MainWindow" , "Notes Point Extractor" , None ))
67
- self .label .setText (_translate ("MainWindow" , "Input Text" , None ))
68
- self .label_2 .setText (_translate ("MainWindow" , "Output Text" , None ))
69
- self .button_output .setText (_translate ("MainWindow" , "Output" , None ))
70
- self .button_markdown_output .setText (_translate ("MainWindow" , "Markdown Output" , None ))
54
+ MainWindow .setWindowTitle (QtWidgets . QApplication . translate ("MainWindow" , "Notes Point Extractor" , None , - 1 ))
55
+ self .label .setText (QtWidgets . QApplication . translate ("MainWindow" , "Input Text" , None , - 1 ))
56
+ self .label_2 .setText (QtWidgets . QApplication . translate ("MainWindow" , "Output Text" , None , - 1 ))
57
+ self .button_output .setText (QtWidgets . QApplication . translate ("MainWindow" , "Output" , None , - 1 ))
58
+ self .button_markdown_output .setText (QtWidgets . QApplication . translate ("MainWindow" , "Markdown Output" , None , - 1 ))
71
59
0 commit comments