Jack Jansen
d1f46c8970
Don't export the SPB type as "SPB", because it shadows the method SPB,
...
which is really important. This is a stopgap measure, as only the generated
C code is adapted. Fixes #776533 .
2003-07-24 22:25:03 +00:00
Jack Jansen
e748f0358f
This wasn't ansified. Fixed.
2003-06-16 13:56:05 +00:00
Jack Jansen
ac8bd9175b
Forgot the code to initialize the glue for the new CFObj_ routines.
2003-05-31 22:09:33 +00:00
Jack Jansen
4eb45e7804
Added functions CFObj_New and CFObj_Convert, general functions to convert
...
between CF objects and their Python representation. Fixes 734695.
2003-05-27 21:39:58 +00:00
Just van Rossum
0ed39577dd
modernized ColorPicker somewhat
2003-05-24 20:14:24 +00:00
Just van Rossum
d77bee1476
fixed typo
2003-05-03 00:38:26 +00:00
Just van Rossum
6767eed22a
Short and sweet module doing something very useful: for event loop
...
based threads, release the GIL when the event loop goes to sleep,
and acquire it again when the event loop wakes up again. OSX-only.
2003-05-03 00:18:55 +00:00
Jack Jansen
8c46ce9add
Allow setting the auto dispose flag on window objects.
2003-04-22 13:55:23 +00:00
Jack Jansen
84c2b1b9aa
Oops, 'k' is the new format code for un unchecked 32 bit quantity,
...
not 'K'.
2003-04-17 20:44:21 +00:00
Jack Jansen
ecc6635ae4
Converted manually written code to the new K format specifier.
...
Untested, but at least it still compiles.
2003-04-17 20:40:07 +00:00
Jack Jansen
bc4ded9bc0
Give a better error message when a string of the wrong size is
...
passed to RawBitMap.
2003-03-21 16:42:36 +00:00
Jack Jansen
3e0196cc00
Adding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by disabling unicode filenames on OS9.
2003-03-21 12:54:24 +00:00
Jack Jansen
fe94e97e48
GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
...
Just.
2003-03-19 22:51:42 +00:00
Jack Jansen
dded84802a
Allow unicode pathnames where FSRefs are expected. Fixes 696253.
2003-03-11 21:48:57 +00:00
Jack Jansen
45f5c4ab3e
Removed unused variable
2003-03-07 15:37:31 +00:00
Jack Jansen
ee1c85c8eb
Various tweaks by Jack because of the different module name, adaptation
...
to the Python style, etc.
2003-03-06 23:02:59 +00:00
Jack Jansen
86f25fb1d2
Module to get OSA terminology description through the "official channels",
...
in stead of manually getting the AETE/AEUT resource. Donated by Donovan
Preston. This is his original code (but with the filename changed) checked
in for reference only.
2003-03-06 23:02:04 +00:00
Jack Jansen
885d4f6577
Mod to previous checkin: we must require ascii, not system defautl encoding,
...
because we have no easy way to convert the python encoding string to
a CF encoding parameter.
2003-03-03 13:19:44 +00:00
Jack Jansen
d505cab5b3
Accept only the system default encoding when converting Python
...
strings to CF strings. Fixes 682215.
2003-03-03 13:12:59 +00:00
Jack Jansen
f92ec2d191
StdFilterProc() uses InOut parameters.
2003-02-27 22:50:50 +00:00
Jack Jansen
8cd9a4fded
Added a linkmodel attribute, showing how Python was built. This is so
...
packages can check that extension modules are built for the right type
of python. Current values can be static, framework, shared and cfm (for
completeness, for MacPyton-OS9).
Closes bug #691889 . The reporter suggests backporting this to 2.2.3
and I think I agree.
2003-02-23 23:23:47 +00:00
Jack Jansen
2bc4a47c86
WASTEconst.py goes one level above the toolbox directory.
2003-02-21 22:11:45 +00:00
Jack Jansen
d7c1723742
Added a method WMAvailable(). This will return True if and only if there
...
is a window manager and we can connect to it, i.e. if it is safe to try
and put up windows.
As a side effect the first call will make the current process frontmost.
2003-02-21 16:31:11 +00:00
Jack Jansen
8d4f06a73a
Added itertools module.
2003-02-05 13:36:50 +00:00
Jack Jansen
b9fa1a9ec5
Changed an edit instruction because of a changed parameter name (sigh).
2003-02-04 15:35:07 +00:00
Jack Jansen
52377e05be
The FSAliasFile routines also have an in/out parameter.
2003-02-02 23:00:21 +00:00
Jack Jansen
60ffc2bafc
Added a missing INCREF in pathname().
2003-01-28 23:29:46 +00:00
Jack Jansen
2b3ce3ba3f
FSRef and EasyDialogs pathname support was pretty much broken in MacPython-OS9. Fixed.
2003-01-26 20:22:41 +00:00
Jack Jansen
9c564755b8
Added a convenience routine pathname() which accepts either a string, unicode,
...
FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
2003-01-19 22:59:52 +00:00
Jack Jansen
e58962af4d
Fixed the first two bugs in the new file dialogs (found by Just):
...
- AskFileForSave didn't work for string return values
- filterProc didn't work.
2003-01-17 23:13:03 +00:00
Jack Jansen
b2a57722a8
It turns out that some calls return AEDesc records that are "borrowed",
...
the AEDesc data shouldn't be disposed when the Python object is.
Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
2003-01-17 23:11:17 +00:00
Jack Jansen
c99b675ff4
For reasons unknown previewProc and filterProc were disabled. Enabled them.
2003-01-17 16:14:31 +00:00
Jack Jansen
2d0909b9cb
Implemented FSCatalogInfo structure support, and used this to implement
...
FSSpec.SetDates() and GetDates(). Closes #662836 .
2003-01-15 22:36:16 +00:00
Jack Jansen
bc65521567
Implemented FSCatalogInfo.
2003-01-12 23:01:46 +00:00
Jack Jansen
b2fcd086c7
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
...
try it.
2003-01-09 23:37:37 +00:00
Jack Jansen
3e82872eca
Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk.
2003-01-08 16:27:44 +00:00
Jack Jansen
5681acbf94
Added zipimport and _random module.
2002-12-30 23:11:30 +00:00
Jack Jansen
248f6f1f73
Second-argument alias methods were generated with a variation on
...
MethodGenerator, this should be OSErrMethodGenerator.
2002-12-26 20:45:43 +00:00
Jack Jansen
00df3e052b
If you entered a pathname for a nonexisting file to a FSSpec constructor
...
on OSX then the actual error (file not found) was obscured by the
error message that tried to be helpful about the allowed arguments. Fixed.
2002-12-25 22:45:28 +00:00
Jack Jansen
e072b876e0
Removed macfs, added File and Folder.
2002-12-24 13:08:52 +00:00
Jack Jansen
b734869f46
- Various tweaks to shut up compiler warnings.
...
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
2002-12-23 23:16:25 +00:00
Jack Jansen
234d074446
- Various tweaks to forestall compiler warnings.
2002-12-23 22:35:38 +00:00
Jack Jansen
6810f92d4d
The extension module macfs has been replaced by a pure Python version.
2002-12-19 23:27:58 +00:00
Jack Jansen
e87663306a
Added the last missing bits of functionality, and fixed a nasty bug where we
...
could overwrite memory.
2002-12-19 23:26:58 +00:00
Jack Jansen
f955784f0c
Regenerated with inheritance-aware xxxx_Check() macros.
2002-12-19 21:24:35 +00:00
Jack Jansen
543c9253cd
- Added rawdata initializers
...
- Added support for optional FSSpecs and FSRefs to the Alias routines.
NewAlias and friends are still functions, though, not methods.
2002-12-18 23:17:26 +00:00
Jack Jansen
1795f29b4b
Fixed silly typo.
...
Added comment (to myself) on what still needs to be done.
2002-12-17 23:29:27 +00:00
Jack Jansen
ae63756bf8
Include Finder.h too in the list of header files to parse: the finder
...
constants have tradiationally been in MACFS.py.
2002-12-17 22:22:57 +00:00
Jack Jansen
e55beefed8
- Added as_pathname and as_tuple methods
...
- Added access to the "data" attribute
- Fixed the FSRef tp_init routine to accept pathnames on OSX
- Changed the FSSpec tp_repr to return something resembling what
macfs returns.
2002-12-17 22:10:46 +00:00
Jack Jansen
e3a1c8f875
Combined alias and file into a single module. This is the only reasonable
...
way to get various alias creation routines as methods of FSSpec or FSRef
objects (which is the logical thing, from a Python POV). Also started on
the code that will contain all the macfs functionality, so macfs can
becode a Python module, to be used mainly for backward compatibility.
2002-12-15 19:55:07 +00:00