summaryrefslogtreecommitdiff
path: root/Mac/Lib/FrameWork.py
Commit message (Collapse)AuthorAgeFilesLines
* Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used bothJack Jansen2002-12-301-1120/+0
| | | | | | | in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on Mac OS X). The only items remaining in Mac/Lib are modules that are meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences in resources, etc).
* Lots of minor tweaks for the pep252 checkins, mainly because QdJack Jansen2002-11-301-7/+7
| | | | attributes are no longer supported.
* Reverted previous change, I was confused.Jack Jansen2002-09-101-1/+1
|
* Import Carbon.AH, not Carbon.HelpJack Jansen2002-09-061-1/+1
|
* Initialize self._helpmenu earlier, so we can use gethelpmenu() whileJack Jansen2002-08-301-1/+1
| | | | building the user menus.
* Added support for the help menu. Application.gethelpmenu() will returnJack Jansen2002-08-291-0/+35
| | | | | | | 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.
* Added minimal support for floating windows.Just van Rossum2002-02-041-7/+12
|
* Changes by Donovan Preston (and a few minor ones by me) to make IDE run underJack Jansen2002-01-211-12/+26
| | | | MachoPython. Mainly making sure we don't call routines that don't exist.
* Don't barf when an AppleEvent was not handled. It's ok to ignore.Just van Rossum2001-12-131-2/+3
|
* The new menu initialization code would also add the SIOUX menus if a ↵Jack Jansen2001-12-101-5/+9
| | | | (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.
* Import the MacOS toolbox modules from the Carbon package.Jack Jansen2001-08-251-18/+18
|
* Merging appropriate 2.1.1 fixes back into the main trunk.Jack Jansen2001-08-031-0/+4
|
* Handle the apple menu differently under Carbon.Jack Jansen2001-03-151-2/+6
|
* Default waittime in the eventloop is now None. At low level it will then be ↵Jack Jansen2001-03-081-5/+8
| | | | set to GetCaretTime().
* DialogWindows now have a self.dlg in addition to self.wid.Jack Jansen2001-02-141-3/+5
|
* Use FSpCreateResFile() in stead of CreateResFile().Jack Jansen2001-01-291-2/+3
| | | | Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
* Replace {Enable,Disable,Check}Item with their carbon-compatible equivalents ↵Jack Jansen2001-01-291-12/+12
| | | | {Enable,Disable,Check}MenuItem.
* Sigh... First test before committing. InvalWindowRect and friends are window ↵Jack Jansen2001-01-231-7/+10
| | | | object methods. Fixed.
* Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.Jack Jansen2001-01-231-7/+7
|
* Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. ↵Jack Jansen2000-10-191-4/+1
| | | | 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).
* Use MacOS.KeepConsole to always exit if the program calls FrameWork._quit(). ↵Jack Jansen2000-10-121-2/+6
| | | | Overridable with a class variable keepconsole.
* Fixed multi-arg appends.Jack Jansen2000-03-071-2/+3
|
* Fixed menu glyph stuff.Jack Jansen1999-12-151-15/+10
| | | | Use MenuEvent in stead of MenuKey.
* Fixed buglet in Application.do_suspendresume(), it took the wrong flag to ↵Just van Rossum1999-12-151-1/+1
| | | | determine suspend/resume -- jvr
* If a menu shortcut is a tuple in stead of a char it is a tuple ↵Jack Jansen1999-12-141-4/+10
| | | | (modifierkeys, char [, glyph]).
* Default schedparams set to (0,0): no event-intervention by Python mainloop. ThisJack Jansen1999-12-031-2/+2
| | | | | was always meant to be the default, and the new example-2 was pretty critical of this.
* cleaned up ugly hack related to activate events and suspend/resume -- jvrJust van Rossum1999-01-271-14/+8
|
* For submenus remember the parent and parent index, so we can grey out ourJack Jansen1998-10-151-0/+8
| | | | | entry if the menu is disabled. This does create a circular reference, so cleanup becomes more important.
* Added a delete() method to menu entries. Only the last entry of a menuJack Jansen1998-07-131-1/+14
| | | | | 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.
* For ControlWindow there is a new method do_rawcontrolhit(), which getsJack Jansen1998-05-281-14/+36
| | | | | | | | | 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.
* Added a PopupMenu class.Jack Jansen1998-05-061-4/+26
|
* Break circular reference on menus upon cleanupJack Jansen1998-02-201-0/+1
|
* Added dopendingevents callJack Jansen1997-06-201-0/+31
| | | | Added asyncevents call to enable asynchronous event handling
* Replaced MacOS.EnableAppSwitch with MacOS.SchedParamsJack Jansen1997-06-121-3/+3
|
* Added Application.cleanup method which asks all windows to closeJack Jansen1996-12-231-0/+5
| | | | themselves and returns true if they did.
* Menu callbacks can be strings, in which case they will be looked up inJack Jansen1996-09-261-12/+76
| | | | | the top window. The menubar is redrawn in the event loop in stead of for every change.
* - Use a flag (self.quitting) as preferred method of exiting mainloopJack Jansen1996-09-171-4/+18
| | | | - Added optional "nomenubar" argument to Application.__init__
* Added setwatchcursor() and setarrowcursor() functionsJack Jansen1996-08-281-0/+10
|
* Mods by Just:Jack Jansen1996-07-261-20/+46
| | | | | | | - Better staggering of windows - Windows have zoombox by default, and zooming works - DrawControls->UpdateControls - Better scrollbar show/hide
* Added MenuItem methods setstyle(), seticon(), setmark()Jack Jansen1996-04-231-0/+12
|
* - Confine window moves to screen boundariesJack Jansen1996-04-191-9/+35
| | | | | | | | | - 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
* Fixed ScrolledWindow to disable scrollbars if everything is visible.Jack Jansen1996-04-161-8/+48
|
* Added ScrolledWindow (a window with one or two scrollbars)Jack Jansen1996-04-121-2/+86
|
* Added enable(onoff) method to menus and menu itemsJack Jansen1996-04-111-0/+11
|
* Removed addpack callsJack Jansen1996-03-201-13/+0
|
* Added checkmenu() method (to checkmark an entry) and delete() methodJack Jansen1996-03-121-0/+18
| | | | to remove a menu.
* Various fixes/enhancements, thanks to Ivan and Just:Jack Jansen1996-01-081-5/+24
| | | | | | | | - 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)
* Minor bugfix in keyboard input handlingJack Jansen1995-12-121-1/+2
|
* Added 2 missing SetPort callsJack Jansen1995-11-141-1/+2
|
* Added idle() method, called when no events are available.Jack Jansen1995-11-101-0/+5
|