-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
117 lines (109 loc) · 5.84 KB
/
main.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created: Fri Feb 21 11:49:04 2014
# by: PyQt4 UI code generator 4.10
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(400, 302)
self.tabWidget = QtGui.QTabWidget(Dialog)
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 401, 341))
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.Filename = QtGui.QLineEdit(self.tab)
self.Filename.setGeometry(QtCore.QRect(40, 20, 271, 27))
self.Filename.setObjectName(_fromUtf8("Filename"))
self.pushButton = QtGui.QPushButton(self.tab)
self.pushButton.setGeometry(QtCore.QRect(320, 20, 71, 27))
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.label = QtGui.QLabel(self.tab)
self.label.setGeometry(QtCore.QRect(10, 20, 66, 17))
self.label.setObjectName(_fromUtf8("label"))
self.label_2 = QtGui.QLabel(self.tab)
self.label_2.setGeometry(QtCore.QRect(0, 50, 66, 17))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.userBox = QtGui.QComboBox(self.tab)
self.userBox.setGeometry(QtCore.QRect(40, 50, 271, 31))
self.userBox.setObjectName(_fromUtf8("userBox"))
self.sendButton = QtGui.QPushButton(self.tab)
self.sendButton.setGeometry(QtCore.QRect(320, 50, 71, 27))
self.sendButton.setObjectName(_fromUtf8("sendButton"))
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.listView = QtGui.QListView(self.tab_2)
self.listView.setGeometry(QtCore.QRect(0, 0, 401, 231))
self.listView.setObjectName(_fromUtf8("listView"))
self.getFile = QtGui.QPushButton(self.tab_2)
self.getFile.setGeometry(QtCore.QRect(290, 240, 98, 27))
self.getFile.setObjectName(_fromUtf8("getFile"))
self.exiter = QtGui.QPushButton(self.tab_2)
self.exiter.setGeometry(QtCore.QRect(10, 240, 98, 27))
self.exiter.setObjectName(_fromUtf8("exiter"))
self.delete_button = QtGui.QPushButton(self.tab_2)
self.delete_button.setGeometry(QtCore.QRect(150, 240, 98, 27))
self.delete_button.setObjectName(_fromUtf8("delete_button"))
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.tab_3 = QtGui.QWidget()
self.tab_3.setObjectName(_fromUtf8("tab_3"))
self.oldpassword = QtGui.QLineEdit(self.tab_3)
self.oldpassword.setGeometry(QtCore.QRect(150, 30, 191, 27))
self.oldpassword.setEchoMode(QtGui.QLineEdit.Password)
self.oldpassword.setObjectName(_fromUtf8("oldpassword"))
self.newpassword1 = QtGui.QLineEdit(self.tab_3)
self.newpassword1.setGeometry(QtCore.QRect(150, 70, 191, 27))
self.newpassword1.setEchoMode(QtGui.QLineEdit.Password)
self.newpassword1.setObjectName(_fromUtf8("newpassword1"))
self.newpassword2 = QtGui.QLineEdit(self.tab_3)
self.newpassword2.setGeometry(QtCore.QRect(150, 110, 191, 27))
self.newpassword2.setEchoMode(QtGui.QLineEdit.Password)
self.newpassword2.setObjectName(_fromUtf8("newpassword2"))
self.pushButton_2 = QtGui.QPushButton(self.tab_3)
self.pushButton_2.setGeometry(QtCore.QRect(187, 210, 181, 27))
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.label_3 = QtGui.QLabel(self.tab_3)
self.label_3.setGeometry(QtCore.QRect(40, 30, 101, 20))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.label_4 = QtGui.QLabel(self.tab_3)
self.label_4.setGeometry(QtCore.QRect(30, 70, 101, 20))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.label_5 = QtGui.QLabel(self.tab_3)
self.label_5.setGeometry(QtCore.QRect(20, 110, 131, 20))
self.label_5.setObjectName(_fromUtf8("label_5"))
self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
self.retranslateUi(Dialog)
self.tabWidget.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(_translate("Dialog", "Dialog", None))
self.pushButton.setText(_translate("Dialog", "Open", None))
self.label.setText(_translate("Dialog", "File", None))
self.label_2.setText(_translate("Dialog", "User", None))
self.sendButton.setText(_translate("Dialog", "Send", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "Send", None))
self.getFile.setText(_translate("Dialog", "Get", None))
self.exiter.setText(_translate("Dialog", "Exit", None))
self.delete_button.setText(_translate("Dialog", "Delete", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "Receive", None))
self.pushButton_2.setText(_translate("Dialog", "Change Password", None))
self.label_3.setText(_translate("Dialog", "Old Password", None))
self.label_4.setText(_translate("Dialog", "New Password", None))
self.label_5.setText(_translate("Dialog", "Repeat Password", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Dialog", "Manage", None))