Skip to content
Browse files

fix for Listbox.Update not using string version of values, Graph.chan…

…ge_coordinates addition
  • Loading branch information
PySimpleGUI committed Jan 9, 2020
1 parent 9543c68 commit 14b661648e6a94948e23c6d1345caf43f8df0e6e
Showing with 16 additions and 2 deletions.
  1. +16 −2 PySimpleGUIQt/
@@ -1,5 +1,5 @@
version = __version__ = "0.31.0. Released 24-Dec-2019"
version = __version__ = " Unreleased - fix for Listbox.update, Graph.change_coordinates"

port = 'PySimpleGUIQt'

@@ -689,7 +689,8 @@ def Update(self, values=None, disabled=None, set_to_index=None,background_color=
self.Values = values
for i in range(self.QT_ListWidget.count()):
items = [str(v) for v in self.Values]
if disabled == True:
elif disabled == False:
@@ -1890,6 +1891,19 @@ def MoveFigure(self, figure, x_direction, y_direction):
return None
self._TKCanvas2.move(figure, shift_amount[0], shift_amount[1])

def change_coordinates(self, graph_bottom_left, graph_top_right):
Changes the corrdinate system to a new one. The same 2 points in space are used to define the coorinate
system - the bottom left and the top right values of your graph.
:param graph_bottom_left: Tuple[int, int] (x,y) The bottoms left corner of your coordinate system
:param graph_top_right: Tuple[int, int] (x,y) The top right corner of your coordinate system
self.BottomLeft = graph_bottom_left
self.TopRight = graph_top_right

def TKCanvas(self):
if self._TKCanvas2 is None:

0 comments on commit 14b6616

Please sign in to comment.
You can’t perform that action at this time.