Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d9f5a39e
Commit
d9f5a39e
authored
Jan 21, 1999
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manually added definitions for normal, bold, etc. These are in MacTypes (of all
places) which isn't worth bgenning.
parent
c0011894
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
Mac/Lib/lib-toolbox/QuickDraw.py
Mac/Lib/lib-toolbox/QuickDraw.py
+20
-2
Mac/Modules/qd/qdscan.py
Mac/Modules/qd/qdscan.py
+11
-1
No files found.
Mac/Lib/lib-toolbox/QuickDraw.py
View file @
d9f5a39e
# Generated from 'flap:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDraw.h'
# Generated from 'flap:CodeWarrior Pro 4:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDraw.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
normal
=
0
bold
=
1
italic
=
2
underline
=
4
outline
=
8
shadow
=
0x10
condense
=
0x20
extend
=
0x40
invalColReq
=
-
1
srcCopy
=
0
srcOr
=
1
...
...
@@ -130,9 +139,18 @@ kUYVY422PixelFormat = FOUR_CHAR_CODE('UYVY')
kYUV211PixelFormat
=
FOUR_CHAR_CODE
(
'Y211'
)
kCursorImageMajorVersion
=
0x0001
kCursorImageMinorVersion
=
0x0000
# Generated from 'flap:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDrawText.h'
# Generated from 'flap:CodeWarrior Pro 4:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDrawText.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
normal
=
0
bold
=
1
italic
=
2
underline
=
4
outline
=
8
shadow
=
0x10
condense
=
0x20
extend
=
0x40
leftCaret
=
0
rightCaret
=
-
1
kHilite
=
1
...
...
Mac/Modules/qd/qdscan.py
View file @
d9f5a39e
...
...
@@ -62,7 +62,17 @@ class MyScanner(Scanner):
def
writeinitialdefs
(
self
):
self
.
defsfile
.
write
(
"def FOUR_CHAR_CODE(x): return x
\
n
"
)
self
.
defsfile
.
write
(
"""
def FOUR_CHAR_CODE(x): return x
normal = 0
bold = 1
italic = 2
underline = 4
outline = 8
shadow = 0x10
condense = 0x20
extend = 0x40
"""
)
def
makeblacklistnames
(
self
):
return
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment