1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-04 12:54:12 +01:00

Removed stringToBoolean

This commit is contained in:
Adam Blackburn
2008-12-24 00:24:26 -06:00
parent b3d7f072d2
commit eb2959cdde
3 changed files with 4 additions and 13 deletions

View File

@@ -564,14 +564,6 @@ def stringToNone(text):
else:
return str(text)
def stringToBoolean(text):
""" Turns a string representation of a bool to a boolean if needed. """
if text in ("True", "1"):
return True
if text in ("False", "0"):
return False
return bool(text)
def checkboxTextboxToggle(checkbox, textboxes):
for textbox in textboxes:
textbox.set_sensitive(checkbox.get_active())