Skip to content

Commit bb38f6f

Browse files
NumPad and AlphaNumericVirtualKeyboard classes updated.
1 parent 3f36a54 commit bb38f6f

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

user_interface/control/numpad/numpad.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,25 @@
44

55

66
class NumPad(QAbstractButton):
7-
def __init__(self, parent=None, width=320, height=315, location_x=0, location_y=0, *args, **kwargs):
8-
QAbstractButton.__init__(self, parent=parent)
7+
def __init__(self, source=None, width=320, height=315, location_x=0, location_y=0, parent=None, *args, **kwargs):
8+
""" NumPad class constructor
9+
10+
Parameters
11+
----------
12+
source : QButton
13+
14+
width : int, optional
15+
16+
height : int, optional
17+
18+
location_x : int, optional
19+
X position of the keypad pop up (the default is 0)
20+
location_y : int, optional
21+
Y position of the keypad pop up (the default is 0)
22+
parent : QButton
23+
Parent QButton (the default is None)
24+
"""
25+
super(QAbstractButton, self).__init__(self)
926

1027
self.parent = parent
1128
self.numpad_width = width

user_interface/control/virtual_keyboard/alphanumeric_virtual_keyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, source=None, width=970, height=315, location_x=0, location_y=
2626
2727
location_x : int, optional
2828
X position of the keypad pop up (the default is 0)
29-
y_pos : int, optional
29+
location_y : int, optional
3030
Y position of the keypad pop up (the default is 0)
3131
parent : QWidget
3232
Parent widget (the default is None)

0 commit comments

Comments
 (0)