Commit Graph

29 Commits

Author SHA1 Message Date
Just van Rossum 5763e07ea3 cleaned up ugly hack related to activate events and suspend/resume -- jvr 1999-01-27 14:22:11 +00:00
Jack Jansen 341d1fe18e For submenus remember the parent and parent index, so we can grey out our
entry if the menu is disabled. This does create a circular reference, so cleanup
becomes more important.
1998-10-15 15:29:16 +00:00
Jack Jansen 5c44027d8a Added a delete() method to menu entries. Only the last entry of a menu
can be deleted, but that's good enough for things like a "Windows"
menu with the dynamic list of open windows at the end of the menu.
1998-07-13 13:41:02 +00:00
Jack Jansen 41e825a8f4 For ControlWindow there is a new method do_rawcontrolhit(), which gets
control before TrackControl is called. The default implementation
calls TrackControl and then do_controlhit().

For ScrolledWindow, do_rawcontrol passes a tracker function to
TrackControl if the mouse is in one of the arrows or grey areas, and
the tracker handles scrolling. For the thumb part nothing has changed.
1998-05-28 14:22:48 +00:00
Jack Jansen bb6193c553 Added a PopupMenu class. 1998-05-06 15:33:09 +00:00
Jack Jansen 7b56aad2e1 Break circular reference on menus upon cleanup 1998-02-20 15:51:39 +00:00
Jack Jansen d080eddf8e Added dopendingevents call
Added asyncevents call to enable asynchronous event handling
1997-06-20 16:24:24 +00:00
Jack Jansen 3368cb7763 Replaced MacOS.EnableAppSwitch with MacOS.SchedParams 1997-06-12 10:51:18 +00:00
Jack Jansen c75e1d052b Added Application.cleanup method which asks all windows to close
themselves and returns true if they did.
1996-12-23 17:22:40 +00:00
Jack Jansen b1667ef782 Menu callbacks can be strings, in which case they will be looked up in
the top window.
The menubar is redrawn in the event loop in stead of for every change.
1996-09-26 16:17:08 +00:00
Jack Jansen 647535d390 - Use a flag (self.quitting) as preferred method of exiting mainloop
- Added optional "nomenubar" argument to Application.__init__
1996-09-17 12:35:43 +00:00
Jack Jansen 4634130aad Added setwatchcursor() and setarrowcursor() functions 1996-08-28 13:53:07 +00:00
Jack Jansen ded835c7f5 Mods by Just:
- Better staggering of windows
- Windows have zoombox by default, and zooming works
- DrawControls->UpdateControls
- Better scrollbar show/hide
1996-07-26 14:01:07 +00:00
Jack Jansen 0f6dc5b888 Added MenuItem methods setstyle(), seticon(), setmark() 1996-04-23 16:18:33 +00:00
Jack Jansen c4eec9fce1 - Confine window moves to screen boundaries
- Added windowbounds() function to help programmer with staggering
  windows
- Added event parameter to idle routine
- Added settext(label) method to menu entries
- Erase/invalidate only visRgn in stead of everything
- Correctly handle clicks in inactive ControlWindows
1996-04-19 16:00:28 +00:00
Jack Jansen 7bfc875270 Fixed ScrolledWindow to disable scrollbars if everything is visible. 1996-04-16 14:35:43 +00:00
Jack Jansen e353215bf7 Added ScrolledWindow (a window with one or two scrollbars) 1996-04-12 16:24:44 +00:00
Jack Jansen cef2c597fe Added enable(onoff) method to menus and menu items 1996-04-11 15:39:01 +00:00
Jack Jansen ef51d1351c Removed addpack calls 1996-03-20 16:24:56 +00:00
Jack Jansen db9ff36ad9 Added checkmenu() method (to checkmark an entry) and delete() method
to remove a menu.
1996-03-12 13:32:03 +00:00
Jack Jansen c8a9949407 Various fixes/enhancements, thanks to Ivan and Just:
- Added window.SetPort() method
- Added optional bounds and resid parameters to Window.open()
- Fixed apple-menu DA handling
- Fixed activate-event handling
- Added default Application.makeusermenus() (File:Quit only)
1996-01-08 23:50:13 +00:00
Jack Jansen 6f47bf44ca Minor bugfix in keyboard input handling 1995-12-12 15:03:35 +00:00
Jack Jansen da38f2d6a3 Added 2 missing SetPort calls 1995-11-14 10:15:42 +00:00
Jack Jansen 38186782e5 Added idle() method, called when no events are available. 1995-11-10 14:48:36 +00:00
Jack Jansen 13dc4f71a9 Fixed dialog-window event handling 1995-08-31 13:38:01 +00:00
Jack Jansen 7e0da905e3 Made separate window class (and subclasses for special windows like
dialogs). This is an incompatible change.
1995-08-17 14:18:20 +00:00
Jack Jansen 7a58336511 Various fixes: missing imports, missing calls to
MacOS.HandleEvent. Also, prints are now inside 'if DEBUG'.
1995-08-14 12:39:54 +00:00
Jack Jansen e4b4038cb2 Various toolbox routines have gotten new names. 1995-07-17 13:25:15 +00:00
Guido van Rossum 8f4b6adb77 two new modules for the Mac toolbox 1995-04-05 09:18:35 +00:00