-
Notifications
You must be signed in to change notification settings - Fork 0
/
form_mainForm.py
110 lines (103 loc) · 6.36 KB
/
form_mainForm.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Qt forms/form_widgetMain.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_mainForm(object):
def setupUi(self, mainForm):
mainForm.setObjectName("mainForm")
mainForm.setWindowModality(QtCore.Qt.ApplicationModal)
mainForm.resize(800, 600)
mainForm.setMinimumSize(QtCore.QSize(800, 600))
self.centralwidget = QtWidgets.QWidget(mainForm)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.tableUsers = QtWidgets.QTableWidget(self.centralwidget)
self.tableUsers.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.tableUsers.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
self.tableUsers.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tableUsers.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableUsers.setObjectName("tableUsers")
self.tableUsers.setColumnCount(4)
self.tableUsers.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableUsers.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableUsers.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableUsers.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.tableUsers.setHorizontalHeaderItem(3, item)
self.tableUsers.horizontalHeader().setDefaultSectionSize(127)
self.tableUsers.verticalHeader().setDefaultSectionSize(31)
self.tableUsers.verticalHeader().setMinimumSectionSize(21)
self.gridLayout.addWidget(self.tableUsers, 0, 1, 1, 1)
self.treeOrgUnits = QtWidgets.QTreeWidget(self.centralwidget)
self.treeOrgUnits.setMaximumSize(QtCore.QSize(350, 16777215))
self.treeOrgUnits.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.treeOrgUnits.setColumnCount(1)
self.treeOrgUnits.setObjectName("treeOrgUnits")
self.gridLayout.addWidget(self.treeOrgUnits, 0, 0, 1, 1)
self.buttonAddOrgUnit = QtWidgets.QPushButton(self.centralwidget)
self.buttonAddOrgUnit.setObjectName("buttonAddOrgUnit")
self.gridLayout.addWidget(self.buttonAddOrgUnit, 1, 0, 1, 1)
self.buttonAddUser = QtWidgets.QPushButton(self.centralwidget)
self.buttonAddUser.setObjectName("buttonAddUser")
self.gridLayout.addWidget(self.buttonAddUser, 1, 1, 1, 1)
mainForm.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(mainForm)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
self.menubar.setObjectName("menubar")
self.menu = QtWidgets.QMenu(self.menubar)
self.menu.setObjectName("menu")
self.menu_2 = QtWidgets.QMenu(self.menu)
self.menu_2.setObjectName("menu_2")
mainForm.setMenuBar(self.menubar)
self.actionEmailCheckConnect = QtWidgets.QAction(mainForm)
self.actionEmailCheckConnect.setObjectName("actionEmailCheckConnect")
self.actionEmailSettings = QtWidgets.QAction(mainForm)
self.actionEmailSettings.setObjectName("actionEmailSettings")
self.actionGoogleWorkspace = QtWidgets.QAction(mainForm)
self.actionGoogleWorkspace.setObjectName("actionGoogleWorkspace")
self.actionDataUpdate = QtWidgets.QAction(mainForm)
self.actionDataUpdate.setObjectName("actionDataUpdate")
self.menu_2.addAction(self.actionEmailCheckConnect)
self.menu_2.addAction(self.actionEmailSettings)
self.menu.addAction(self.menu_2.menuAction())
self.menu.addAction(self.actionGoogleWorkspace)
self.menu.addSeparator()
self.menu.addAction(self.actionDataUpdate)
self.menubar.addAction(self.menu.menuAction())
self.retranslateUi(mainForm)
self.actionDataUpdate.triggered.connect(mainForm.actionUpdateData_triggered)
self.treeOrgUnits.itemClicked['QTreeWidgetItem*','int'].connect(mainForm.treeOrgUnits_itemSelected)
self.actionEmailSettings.triggered.connect(mainForm.actionEmailSettings_triggered)
self.actionEmailCheckConnect.triggered.connect(mainForm.actionEmailCheckConnect_triggered)
self.buttonAddOrgUnit.clicked.connect(mainForm.buttonAddOrgUnit_clicked)
self.buttonAddUser.clicked.connect(mainForm.buttonAddUser_clicked)
self.tableUsers.cellDoubleClicked['int','int'].connect(mainForm.itemUsers_doubleClicked)
QtCore.QMetaObject.connectSlotsByName(mainForm)
def retranslateUi(self, mainForm):
_translate = QtCore.QCoreApplication.translate
mainForm.setWindowTitle(_translate("mainForm", "Управление Google Workspace"))
item = self.tableUsers.horizontalHeaderItem(0)
item.setText(_translate("mainForm", "Фамилия"))
item = self.tableUsers.horizontalHeaderItem(1)
item.setText(_translate("mainForm", "Имя"))
item = self.tableUsers.horizontalHeaderItem(2)
item.setText(_translate("mainForm", "Адрес электронной почты"))
item = self.tableUsers.horizontalHeaderItem(3)
item.setText(_translate("mainForm", "ID"))
self.treeOrgUnits.headerItem().setText(0, _translate("mainForm", "Организационные подразделения"))
self.buttonAddOrgUnit.setText(_translate("mainForm", "Добавить организационное подразделение"))
self.buttonAddUser.setText(_translate("mainForm", "Добавить пользователей"))
self.menu.setTitle(_translate("mainForm", "Настройки"))
self.menu_2.setTitle(_translate("mainForm", "Электронная почта"))
self.actionEmailCheckConnect.setText(_translate("mainForm", "Проверка подключения"))
self.actionEmailSettings.setText(_translate("mainForm", "Настройка"))
self.actionGoogleWorkspace.setText(_translate("mainForm", "Google Workspace"))
self.actionDataUpdate.setText(_translate("mainForm", "Обновить данные"))