Revision 424e22f2
Added by Vincent Le Goff over 4 years ago
src/ui/window.py | ||
---|---|---|
106 | 106 |
|
107 | 107 |
# Input |
108 | 108 |
s_input = wx.BoxSizer(wx.HORIZONTAL) |
109 |
l_input = wx.StaticText(self, -1, "Input")
|
|
109 |
l_input = wx.StaticText(self, -1, t("ui.client.input"))
|
|
110 | 110 |
t_input = wx.TextCtrl(self, -1, "", size=(125, -1), |
111 | 111 |
style=wx.TE_PROCESS_ENTER) |
112 | 112 |
self.input = t_input |
113 | 113 |
|
114 | 114 |
# Password |
115 |
l_password = wx.StaticText(self, -1, "Password")
|
|
115 |
l_password = wx.StaticText(self, -1, t("ui.client.password"))
|
|
116 | 116 |
t_password = wx.TextCtrl(self, -1, "", size=(20, -1), |
117 | 117 |
style=wx.TE_PROCESS_ENTER | wx.TE_PASSWORD) |
118 | 118 |
self.password = t_password |
... | ... | |
125 | 125 |
s_input.Add(t_password, proportion=2) |
126 | 126 |
|
127 | 127 |
# Ouput |
128 |
l_output = wx.StaticText(self, -1, "Output")
|
|
128 |
l_output = wx.StaticText(self, -1, t("ui.client.output"))
|
|
129 | 129 |
t_output = wx.TextCtrl(self, -1, "", |
130 | 130 |
size=(600, 400), style=wx.TE_MULTILINE|wx.TE_READONLY) |
131 | 131 |
self.output = t_output |
... | ... | |
150 | 150 |
self.client.write(msg + "\r\n") |
151 | 151 |
|
152 | 152 |
def OnFocus(self, evt): |
153 |
"""The GUIClient requires a change of focus. |
|
154 |
|
|
155 |
This event is triggered when the GUIClient asks a change of |
|
156 |
focus in the input field (hiding the password field) or in |
|
157 |
the password field (hiding the input field). |
|
158 |
|
|
159 |
""" |
|
153 | 160 |
val = evt.GetValue() |
154 | 161 |
if val == "input": |
155 | 162 |
self.input.Show() |
Also available in: Unified diff
Prepare the ClientWindow to be translated