InputMethod
Base classes
⋔ Inheritance diagram
graph TD
1473245531888["gui.InputMethod"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473299815024 --> 1473245531888
140713234304496 --> 1473299815024
🛈 DocStrings
Bases: ObjectMixin
Source code in prettyqt\gui\inputmethod.py
| class InputMethod(core.ObjectMixin):
def __init__(self, item: QtGui.QInputMethod):
self.item = item
def __getattr__(self, val):
return getattr(self.item, val)
def get_anchor_rectangle(self) -> core.RectF:
return core.RectF(self.anchorRectangle())
def get_cursor_rectangle(self) -> core.RectF:
return core.RectF(self.cursorRectangle())
def get_input_item_clip_rectangle(self) -> core.RectF:
return core.RectF(self.inputItemClipRectangle())
def get_input_item_rectangle(self) -> core.RectF:
return core.RectF(self.inputItemRectangle())
def get_keyboard_rectangle(self) -> core.RectF:
return core.RectF(self.keyboardRectangle())
def get_locale(self) -> core.Locale:
return core.Locale(self.locale())
def get_input_direction(self) -> constants.LayoutDirectionStr:
return constants.LAYOUT_DIRECTION.inverse[self.inputDirection()]
@classmethod
def query_focus_object(cls, query: constants.InputMethodQueryStr, argument):
return cls.queryFocusObject(constants.INPUT_METHOD_QUERY[query], argument)
|