Jack Jansen
2575022aef
Reverted previous change, I was confused.
2002-09-10 12:22:32 +00:00
Jack Jansen
bc603547ae
Import Carbon.AH, not Carbon.Help
2002-09-06 23:33:31 +00:00
Jack Jansen
4e39949d87
Initialize self._helpmenu earlier, so we can use gethelpmenu() while
...
building the user menus.
2002-08-30 23:01:28 +00:00
Jack Jansen
f21b7063d3
Added support for the help menu. Application.gethelpmenu() will return
...
it.
Also fixed menu IDs to be signed in do_menudispatch. this is an incompatible
change, but I don't think it'll hurt anyone.
2002-08-29 22:04:15 +00:00
Just van Rossum
4014401c6c
Added minimal support for floating windows.
2002-02-04 12:52:44 +00:00
Jack Jansen
a4adacbd7e
Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
...
MachoPython. Mainly making sure we don't call routines that don't exist.
2002-01-21 23:01:24 +00:00
Just van Rossum
d9c9b57e29
Don't barf when an AppleEvent was not handled. It's ok to ignore.
2001-12-13 12:57:11 +00:00
Jack Jansen
52306a780b
The new menu initialization code would also add the SIOUX menus if a (frozen) Python program had installed its own menubar previously. We now guard against this, with a bit of a hack: FrameWork uses the same Menu ID as Sioux, and the init code checks that the text in the menu is "About SIOUX" before replacing it.
2001-12-10 16:08:14 +00:00
Jack Jansen
5a6fdcd371
Import the MacOS toolbox modules from the Carbon package.
2001-08-25 12:15:04 +00:00
Jack Jansen
cbed91b4db
Merging appropriate 2.1.1 fixes back into the main trunk.
2001-08-03 13:31:36 +00:00
Jack Jansen
6b498de165
Handle the apple menu differently under Carbon.
2001-03-15 14:39:03 +00:00
Jack Jansen
e5c9474f0f
Default waittime in the eventloop is now None. At low level it will then be set to GetCaretTime().
2001-03-08 23:10:37 +00:00
Jack Jansen
ed24cd2cf7
DialogWindows now have a self.dlg in addition to self.wid.
2001-02-14 17:07:04 +00:00
Jack Jansen
01a2d9e281
Use FSpCreateResFile() in stead of CreateResFile().
...
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
2001-01-29 15:32:00 +00:00
Jack Jansen
afd0aa680a
Replace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable,Disable,Check}MenuItem.
2001-01-29 13:29:47 +00:00
Jack Jansen
7302340436
Sigh... First test before committing. InvalWindowRect and friends are window object methods. Fixed.
2001-01-23 14:58:20 +00:00
Jack Jansen
d829e9e8e3
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
2001-01-23 14:34:49 +00:00
Jack Jansen
fd9925af56
Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This solution is better: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before).
2000-10-19 20:31:51 +00:00
Jack Jansen
f2bd9ee357
Use MacOS.KeepConsole to always exit if the program calls FrameWork._quit(). Overridable with a class variable keepconsole.
2000-10-12 21:25:37 +00:00
Jack Jansen
34d11f0670
Fixed multi-arg appends.
2000-03-07 23:40:13 +00:00
Jack Jansen
c15e43a2da
Fixed menu glyph stuff.
...
Use MenuEvent in stead of MenuKey.
1999-12-15 15:45:23 +00:00
Just van Rossum
1a5eb04d47
Fixed buglet in Application.do_suspendresume(), it took the wrong flag to determine suspend/resume -- jvr
1999-12-15 14:55:16 +00:00
Jack Jansen
13681b73b5
If a menu shortcut is a tuple in stead of a char it is a tuple (modifierkeys, char [, glyph]).
1999-12-14 15:45:53 +00:00
Jack Jansen
0c3e4b6ca1
Default schedparams set to (0,0): no event-intervention by Python mainloop. This
...
was always meant to be the default, and the new example-2 was pretty critical
of this.
1999-12-03 16:08:50 +00:00
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