sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44659
[Question #661161]: Convert bool to string
New question #661161 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661161
def Save_Settings(event):
configFile = File("config.properties")
inProps = Properties()
inProps.setProperty("Member", check_member_enable.isSelected())
outputStream = FileOutputStream(configFile)
inProps.store(outputStream, "host setttings")
outputStream.close()
I get this error: TypeError: setProperty(): 2nd arg can't be coerced to String
I try: inProps.setProperty("Member", String.valueOf(check_member_enable.isSelected())
**How can I make this work.. ???
Thank you!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.