Closed cristianmarian95 closed 5 years ago
I'm not seeing that problem...
Any chance you could provide:
Windows / Python version 3.6 / AppJar version 0.9
def addRadioButton(self, title, name, value=None, row=None, column=0, colspan=0, rowspan=0, trick=False):
""" Method used to add radio message """
self.app.addRadioButton(title=title, name=name, row=row, column=column, colspan=colspan, rowspan=rowspan)
if value is not None: self.app.setRadioButton(title, value, callFunction=False)
if trick: self.app.setRadioTick(title, tick=trick)
HI @cristianmarian95 - are you using appJar in ttk
mode?
OK, I've looked into this a bit more.
Changing radio buttons is definitely not supported in ttk, or in fact on my test machine (a Mac), so I've introduced a warning when users try, and updated the docs to warn people.
I've also deprecated setRadioTick()
as it doesn't actually turn radio buttons into tick boxes, instead turning them into big rectangular buttons. There's now a new function: setRadioSquare
which will do the job. Again, docs updated accordingly.
When i try to use this
self.app.setRadioTick(title, tick=True)
i get this error: