diff --git a/pg.py b/pg.py index f6e275a..907de47 100644 --- a/pg.py +++ b/pg.py @@ -111,7 +111,7 @@ class TextButton: self.padding = padding self.callable_position = None - if position is int: + if position is tuple: self.position = position else: @@ -168,10 +168,10 @@ class TextButton: if not new_callable_pos is None: new_pos = new_callable_pos(self.size) - elif new_pos is int: + elif new_pos is tuple: new_callable_pos = None - elif new_pos is Callable: + else: new_pos = new_pos(self.size) new_callable_pos = new_pos