Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
de77774
1
Parent(s):
c98ddbd
Update kbhelpers.py
Browse files
Powers/utils/kbhelpers.py
CHANGED
@@ -19,10 +19,12 @@ def ikb(rows=None, back=False, todo="start_back"):
|
|
19 |
line.append(button)
|
20 |
lines.append(line)
|
21 |
except AttributeError:
|
22 |
-
for
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
26 |
except TypeError:
|
27 |
# make a code to handel that error
|
28 |
line = []
|
|
|
19 |
line.append(button)
|
20 |
lines.append(line)
|
21 |
except AttributeError:
|
22 |
+
for row in rows:
|
23 |
+
line = []
|
24 |
+
for button in row:
|
25 |
+
button = btn(*button) # Will make the kb which don't have "." in them
|
26 |
+
line.append(button)
|
27 |
+
lines.append(line)
|
28 |
except TypeError:
|
29 |
# make a code to handel that error
|
30 |
line = []
|