Definition at line 89 of file gui.py.
def movies2hdd.gui.Step2.__init__ |
( |
|
self, |
|
|
|
parent = None |
|
) |
| |
Definition at line 90 of file gui.py.
93 self.setTitle(
"Connect to your Dreambox")
94 self.
layout = QVBoxLayout()
98 self.
check = QCheckBox(
"Do the movies need to be &downloaded?")
99 self.check.stateChanged.connect(self.
func_check)
100 self.layout.addWidget(self.
check)
102 self.
group = QGroupBox(
"Connection information")
103 self.group.layout = QVBoxLayout()
104 self.group.form = QFormLayout()
106 self.
host = QLineEdit()
107 self.registerField(
"host", self.
host)
108 self.group.form.addRow(self.tr(
"&Host:"), self.
host)
109 self.
user = QLineEdit()
110 self.registerField(
"user", self.
user)
111 self.group.form.addRow(self.tr(
"&User:"), self.
user)
112 self.
warning = QLabel(
"<strong color='red'>Warning:</strong> Your password will be sent unencryptedly!\nPlease do this only if you trust the network that you are currently connected to.\nOtherwise please tunnel your connection for example via SSH or VPN.")
113 self.warning.setWordWrap(
True)
116 self.registerField(
"password", self.
password)
117 self.password.setEchoMode(QLineEdit.EchoMode.Password)
118 self.group.form.addRow(self.tr(
"&Password:"), self.
password)
120 self.group.layout.addLayout(self.group.form)
121 self.group.setLayout (self.group.layout)
122 self.layout.addWidget(self.
group)
123 self.group.setEnabled(
False)
125 self.setLayout(self.
layout)