|
Admin |
Page Options:
Printable Page |
By Ajm113 - 2007
Whats a Tips dialog?
A tips dialog is a window that usually pops up and shows a tip of your program. It tells the user a neat trick that they can use for your program.
Its a good way to give users more knowledge of your program so they wont be sending you emails on using it all the time.
First Off
Lets go to where you have your program at and add in a ".txt" file and name it "tips.txt". This will store our tips. Lets put in some tips!
Copy This & Paste In tips.txt.
#This will not be shown for this is a comment.
#tip1
Press Alt+F4 to exit.
#tip2
You can reach me at myemail@something.com
self.SetTopWindow(frame) #This will tell this is a frame
provider = wx.CreateFileTipProvider("tips.txt", 0) #This does the dialog stuff like the "Next Tip".
wx.ShowTip(None, provider, False) #Define more of it.
class App(wxApp):
def OnInit(self):
frame = MainFrame(NULL, -1, 'My Program', wxDefaultPosition, wxDefaultSize)
wxApp.__init__(self)
frame.Show(True)
#Show Tips Code>>>
return True
App(0).MainLoop()