In wxPython, how do you manage the toggle on the TipProvider dialog that manages whether or not you want to see it again as you open the program? When I do it and leave the checkmark empty, and reopen the program, the dialog box is still present.
Like, is there an attribute for that checkbox in the dialog object so that when you click OK when the checkbox is off, you can change a line of text in the tip.txt file to manage the toggling, via read/write info in the tip file?
#enable_tip=0
#the above line is the toggle.
tip 1
tip 2
What I assume would be done is a method that opens this file with read/write, read the first line, last character to make sure it's on or off. If it's 1, enable, if not, then don't show it. I can always call the tip box back open so I can toggle that checkmark, but I can't find the attribute for that checkmark so I can do like:
pseudocode
if tipdialog is wx.ID_OK and checkbox is False:
write 0 in the first line of the tip file
Or is there another way around this?
EDIT:
Also, if I were to turn it off, but reopen the dialog in the middle of the program, how can I keep it off until I turn it on again?
Like, is there an attribute for that checkbox in the dialog object so that when you click OK when the checkbox is off, you can change a line of text in the tip.txt file to manage the toggling, via read/write info in the tip file?
#enable_tip=0
#the above line is the toggle.
tip 1
tip 2
What I assume would be done is a method that opens this file with read/write, read the first line, last character to make sure it's on or off. If it's 1, enable, if not, then don't show it. I can always call the tip box back open so I can toggle that checkmark, but I can't find the attribute for that checkmark so I can do like:
pseudocode
if tipdialog is wx.ID_OK and checkbox is False:
write 0 in the first line of the tip file
Or is there another way around this?
EDIT:
Also, if I were to turn it off, but reopen the dialog in the middle of the program, how can I keep it off until I turn it on again?
