On Tuesday 04 August 2009 08:27:11 am Manoharan Durga wrote:
> I am starting to make a DABO application. Hope to complete it with the
> help of everyone ;-)
>
> Have created a MainForm and created a Menu as well. The only menu option
> that is ready right now is to quit the application! Created the
> following entry.
>
>     mentry = dabo.ui.dMenu()
>     mentry.Caption = '&Entry'
>     mentry.append('Quit', HotKey='Ctrl+Q', OnHit=doQuit, help='Exit
> Application')
>
> And, I created the following function doQuit.
>
> def doQuit(evt):
>     self.Form.close()
>
> But, clicking this Quit menu does not close the form or exiting the
> application. (Clicking the x button of the window does close the form!)
> Can someone help?

There are two 'closes' 
1. close the window
   OnHit=app.onWinClose

2. close the app
  OnHit=app.onFileExit

You can check out usApp.py to determine what they do.

Johnf




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to