commit
7209280bc5
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
version = __version__ = "4.20.0.3 Unreleased\n Ability to add your own theme easier using theme_add_new, VSeparator added (spelling error)"
|
version = __version__ = "4.20.0.4 Unreleased\n Ability to add your own theme easier using theme_add_new, VSeparator added (spelling error), removed Radio update clearing all if one is cleared (forgot about reset_group)"
|
||||||
|
|
||||||
port = 'PySimpleGUI'
|
port = 'PySimpleGUI'
|
||||||
|
|
||||||
|
@ -214,6 +214,10 @@ def _timeit_summary(func):
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
# Handy python statements to increment and decrement with wrapping that I don't want to forget
|
||||||
|
# count = (count + (MAX - 1)) % MAX # Decrement - roll over to MAX from 0
|
||||||
|
# count = (count + 1) % MAX # Increment to MAX then roll over to 0
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Welcome to the "core" PySimpleGUI code....
|
Welcome to the "core" PySimpleGUI code....
|
||||||
|
|
||||||
|
@ -1723,6 +1727,7 @@ class Radio(Element):
|
||||||
if value is True:
|
if value is True:
|
||||||
self.TKIntVar.set(self.EncodedRadioValue)
|
self.TKIntVar.set(self.EncodedRadioValue)
|
||||||
elif value is False:
|
elif value is False:
|
||||||
|
if self.TKIntVar.get() == self.EncodedRadioValue:
|
||||||
self.TKIntVar.set(0)
|
self.TKIntVar.set(0)
|
||||||
except:
|
except:
|
||||||
print('Error updating Radio')
|
print('Error updating Radio')
|
||||||
|
@ -4183,8 +4188,7 @@ class Graph(Element):
|
||||||
shift_converted = self._convert_xy_to_canvas_xy(x_direction, y_direction)
|
shift_converted = self._convert_xy_to_canvas_xy(x_direction, y_direction)
|
||||||
shift_amount = (shift_converted[0] - zero_converted[0], shift_converted[1] - zero_converted[1])
|
shift_amount = (shift_converted[0] - zero_converted[0], shift_converted[1] - zero_converted[1])
|
||||||
if figure is None:
|
if figure is None:
|
||||||
print('*** WARNING - Your figure is None. It most likely means your did not Finalize your Window ***')
|
print('* move_figure warning - your figure is None *')
|
||||||
print('Call Window.Finalize() prior to all graph operations')
|
|
||||||
return None
|
return None
|
||||||
self._TKCanvas2.move(figure, shift_amount[0], shift_amount[1])
|
self._TKCanvas2.move(figure, shift_amount[0], shift_amount[1])
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
version = __version__ = "0.35.0.3 Unreleased\nMassive update of docstrings (thanks nngogol), default for slider tick interval set automatically now, margins added to Window but not yet hooked up, VSeparator added (spelling error)"
|
version = __version__ = "0.35.0.4 Unreleased\nMassive update of docstrings (thanks nngogol), default for slider tick interval set automatically now, margins added to Window but not yet hooked up, VSeparator added (spelling error), added Radio.reset_group and removed clearing all when one of them is cleared (recent change)"
|
||||||
|
|
||||||
port = 'PySimpleGUIQt'
|
port = 'PySimpleGUIQt'
|
||||||
|
|
||||||
|
@ -933,14 +933,20 @@ class Radio(Element):
|
||||||
self.QT_Radio_Button.setDisabled(False)
|
self.QT_Radio_Button.setDisabled(False)
|
||||||
if value is True:
|
if value is True:
|
||||||
self.QT_Radio_Button.setChecked(True)
|
self.QT_Radio_Button.setChecked(True)
|
||||||
if value is False: # If setting this button to false, then set them ALL to false too
|
if value is False:
|
||||||
self.QT_Radio_Button.setChecked(True)
|
|
||||||
self.QT_RadioButtonGroup.setExclusive(False)
|
self.QT_RadioButtonGroup.setExclusive(False)
|
||||||
self.QT_Radio_Button.setChecked(False)
|
self.QT_Radio_Button.setChecked(False)
|
||||||
self.QT_RadioButtonGroup.setExclusive(True)
|
self.QT_RadioButtonGroup.setExclusive(True)
|
||||||
super().Update(self.QT_Radio_Button, background_color=background_color, text_color=text_color, font=font, visible=visible)
|
super().Update(self.QT_Radio_Button, background_color=background_color, text_color=text_color, font=font, visible=visible)
|
||||||
|
|
||||||
|
|
||||||
|
def reset_group(self):
|
||||||
|
self.QT_Radio_Button.setChecked(True)
|
||||||
|
self.QT_RadioButtonGroup.setExclusive(False)
|
||||||
|
self.QT_Radio_Button.setChecked(False)
|
||||||
|
self.QT_RadioButtonGroup.setExclusive(True)
|
||||||
|
|
||||||
|
|
||||||
def _QtCallbackValueChanged(self, value):
|
def _QtCallbackValueChanged(self, value):
|
||||||
if not self.ChangeSubmits:
|
if not self.ChangeSubmits:
|
||||||
return
|
return
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
version = __version__ = "0.17.1.1 Unreleased\n VSeparator added (spelling error)"
|
version = __version__ = "0.17.1.2 Unreleased\n VSeparator added (spelling error), Radio.reset_group added and removed the clearing all when one cleared"
|
||||||
|
|
||||||
port = 'PySimpleGUIWx'
|
port = 'PySimpleGUIWx'
|
||||||
|
|
||||||
|
@ -806,11 +806,14 @@ class Radio(Element):
|
||||||
if value is True:
|
if value is True:
|
||||||
self.WxRadioButton.SetValue(True)
|
self.WxRadioButton.SetValue(True)
|
||||||
elif value is False:
|
elif value is False:
|
||||||
self.WxRadioButton.SetValue(True)
|
|
||||||
self.WxRadioButton.SetValue(False)
|
self.WxRadioButton.SetValue(False)
|
||||||
super().Update(self.WxRadioButton, background_color=background_color, text_color=text_color, font=font, visible=visible)
|
super().Update(self.WxRadioButton, background_color=background_color, text_color=text_color, font=font, visible=visible)
|
||||||
|
|
||||||
|
|
||||||
|
def reset_group(self):
|
||||||
|
self.WxRadioButton.SetValue(True)
|
||||||
|
self.WxRadioButton.SetValue(False)
|
||||||
|
|
||||||
update = Update
|
update = Update
|
||||||
|
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
|
|
Loading…
Reference in New Issue