You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Engine/GUITextbox.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,14 @@ class Textbox(Element):
7
7
"""[GUI] Текстовое поле"""
8
8
9
9
def__init__(self, screen, style, x, y, text="", enable=True, maxLength=0, alphabet="123457890"):
10
-
"""Коснтруктор\nПринимает: (Window) screen - окно в котором необходимо рисовать, (Style) style - стиль, (int) x - коорината x, (int) y - координата y, (string) text - текст, (bool) enable - состояние, (int) maxLength - максимальная длина текста, (string) alphabet - алфавит доступных для ввода символов"""
11
10
super().__init__(screen, style, x, y, text, enable)
12
11
self.value=""
13
12
self.maxLength=maxLength
14
13
self.selected=False
15
14
self.alphabet=alphabet
16
15
17
16
def__str__(self):
18
-
"""Возвращает текст из текствого поля\nВозвращает: (string) - текст из текствого поля"""
0 commit comments