[Pyobjc-dev] [ pyobjc-Bugs-789209 ] NSBezierPath.getLineDash_count_phase_
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-08-15 12:33:10
|
Bugs item #789209, was opened at 2003-08-15 14:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=789209&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Martina Oefelein (oefe) Assigned to: Nobody/Anonymous (nobody) Summary: NSBezierPath.getLineDash_count_phase_ Initial Comment: >>> from AppKit import * >>> bp = NSBezierPath.bezierPath() >>> bp.setLineDash_count_phase_((1, 2.5, 0.5, 0.5), 4, 0) >>> bp.getLineDash_count_phase_() Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: Cannot call getLineDash:count:phase: on <NSBezierPath objective-c instance 0x6b9fb0> from Python For this example, I would expect it to return ((1, 2.5, 0.5, 0.5), 4, 0) In both setLineDash_count_phase_ and getLineDash_count_phase_, the count parameter is redundant with the size of the tuple. It would be better to omit this parameter: >>> bp.setLineDash_count_phase_((1, 2.5, 0.5, 0.5), 0) >>> bp.getLineDash_count_phase_() ((1, 2.5, 0.5, 0.5), 0) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=789209&group_id=14534 |