Window.CurrentLocation() completed
This commit is contained in:
parent
646222b87f
commit
724c457283
|
@ -729,8 +729,7 @@ InputOptionMenu = OptionMenu
|
||||||
# Listbox #
|
# Listbox #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
class Listbox(Element):
|
class Listbox(Element):
|
||||||
def __init__(self, values, default_values=None, select_mode=None, change_submits=False, enable_events=False, bind_return_key=False,
|
def __init__(self, values, default_values=None, select_mode=None, change_submits=False, enable_events=False, bind_return_key=False, size=(None, None), disabled=False, auto_size_text=None, font=None, background_color=None,
|
||||||
size=(None, None), disabled=False, auto_size_text=None, font=None, background_color=None,
|
|
||||||
text_color=None, key=None, pad=None, tooltip=None, visible=True, size_px=(None,None)):
|
text_color=None, key=None, pad=None, tooltip=None, visible=True, size_px=(None,None)):
|
||||||
'''
|
'''
|
||||||
Listbox Element
|
Listbox Element
|
||||||
|
@ -3068,12 +3067,14 @@ class Window:
|
||||||
self.DisableClose = disable_close
|
self.DisableClose = disable_close
|
||||||
self._Hidden = False
|
self._Hidden = False
|
||||||
self.QTApplication = None
|
self.QTApplication = None
|
||||||
|
self.QT_QMainWindow = None
|
||||||
self._Size=size
|
self._Size=size
|
||||||
self.ElementPadding = element_padding or DEFAULT_ELEMENT_PADDING
|
self.ElementPadding = element_padding or DEFAULT_ELEMENT_PADDING
|
||||||
self.FocusElement = None
|
self.FocusElement = None
|
||||||
self.BackgroundImage = background_image
|
self.BackgroundImage = background_image
|
||||||
self.XFound = False
|
self.XFound = False
|
||||||
|
|
||||||
|
|
||||||
# ------------------------- Add ONE Row to Form ------------------------- #
|
# ------------------------- Add ONE Row to Form ------------------------- #
|
||||||
def AddRow(self, *args):
|
def AddRow(self, *args):
|
||||||
''' Parms are a variable number of Elements '''
|
''' Parms are a variable number of Elements '''
|
||||||
|
@ -3499,7 +3500,8 @@ class Window:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def CurrentLocation(self):
|
def CurrentLocation(self):
|
||||||
return int(self.TKroot.winfo_x()), int(self.TKroot.winfo_y())
|
location = self.QT_QMainWindow.geometry()
|
||||||
|
return location.left(), location.top()
|
||||||
|
|
||||||
class QTMainWindow(QWidget):
|
class QTMainWindow(QWidget):
|
||||||
def __init__(self,enable_key_events, window):
|
def __init__(self,enable_key_events, window):
|
||||||
|
|
Loading…
Reference in New Issue