Generate perfectly consistent and complete Python interface #126
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
Refactoring & Cleanup
Tiny Feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: john/McRogueFace#126
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extension of #20 - use mcrfpy classes:
__init__
(see #110)This is the "leader issue" for a broader class of pain-in-the-ass deficiencies with the way C++ items are exposed and the way Python has to present them.
Acceptable shorthand for Python
We have these vectors across all classes:
position
->pos
pos.x
andpos.y
size
->size
size.x
andsize.y
grid_pos
andgrid_size
Similarly, we have
fill
andoutline
colorsThere are a lot of other ints and floats these objects expose - they should be enumerated and made into optional
__init__
keyword-only argsMandatory args, positional args, and rules for
mcrfpy
Python objects during__init__
Caption()
,Sprite()
,Grid()
andFrame()
must result in valid, safe objects[pos, size, grid_pos, grid_size vectors], [texture/font objects], [text]
Other optional args
keyword-only.