Multiline - fix for appending lines.
This commit is contained in:
parent
0c1860b006
commit
87aef6928f
|
@ -761,7 +761,7 @@ class Multiline(Element):
|
||||||
try:
|
try:
|
||||||
if not append:
|
if not append:
|
||||||
self.TKText.delete('1.0', tk.END)
|
self.TKText.delete('1.0', tk.END)
|
||||||
self.TKText.insert(1.0, value)
|
self.TKText.insert(tk.END, value)
|
||||||
except: pass
|
except: pass
|
||||||
self.DefaultText = value
|
self.DefaultText = value
|
||||||
if self.Autoscroll:
|
if self.Autoscroll:
|
||||||
|
@ -993,13 +993,11 @@ class Button(Element):
|
||||||
|
|
||||||
# Realtime button release callback
|
# Realtime button release callback
|
||||||
def ButtonReleaseCallBack(self, parm):
|
def ButtonReleaseCallBack(self, parm):
|
||||||
r, c = self.Position
|
|
||||||
self.LastButtonClickedWasRealtime = False
|
self.LastButtonClickedWasRealtime = False
|
||||||
self.ParentForm.LastButtonClicked = None
|
self.ParentForm.LastButtonClicked = None
|
||||||
|
|
||||||
# Realtime button callback
|
# Realtime button callback
|
||||||
def ButtonPressCallBack(self, parm):
|
def ButtonPressCallBack(self, parm):
|
||||||
r, c = self.Position
|
|
||||||
self.ParentForm.LastButtonClickedWasRealtime = True
|
self.ParentForm.LastButtonClickedWasRealtime = True
|
||||||
if self.Key is not None:
|
if self.Key is not None:
|
||||||
self.ParentForm.LastButtonClicked = self.Key
|
self.ParentForm.LastButtonClicked = self.Key
|
||||||
|
@ -1009,6 +1007,7 @@ class Button(Element):
|
||||||
# ------- Button Callback ------- #
|
# ------- Button Callback ------- #
|
||||||
def ButtonCallBack(self):
|
def ButtonCallBack(self):
|
||||||
global _my_windows
|
global _my_windows
|
||||||
|
# print(f'Parent = {self.ParentForm} Position = {self.Position}')
|
||||||
# Buttons modify targets or return from the form
|
# Buttons modify targets or return from the form
|
||||||
# If modifying target, get the element object at the target and modify its StrVar
|
# If modifying target, get the element object at the target and modify its StrVar
|
||||||
target = self.Target
|
target = self.Target
|
||||||
|
@ -1062,7 +1061,6 @@ class Button(Element):
|
||||||
elif self.BType == BUTTON_TYPE_CLOSES_WIN: # this is a return type button so GET RESULTS and destroy window
|
elif self.BType == BUTTON_TYPE_CLOSES_WIN: # this is a return type button so GET RESULTS and destroy window
|
||||||
# first, get the results table built
|
# first, get the results table built
|
||||||
# modify the Results table in the parent FlexForm object
|
# modify the Results table in the parent FlexForm object
|
||||||
r,c = self.Position
|
|
||||||
if self.Key is not None:
|
if self.Key is not None:
|
||||||
self.ParentForm.LastButtonClicked = self.Key
|
self.ParentForm.LastButtonClicked = self.Key
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue