View Issue Details

IDProjectCategoryView StatusLast Update
0002563FreeCADBugpublic2016-05-29 01:35
Reporterplasticsun Assigned Toyorik  
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
PlatformAMD 64OSUbuntuOS Version14.04.4 LTS
Product Version0.16 
Summary0002563: Snapper.getPoint(): cancelling selection gives error for two-argument-handler
DescriptionThe Snapper.getPoint.cancel() function should not assume, that Snapper.getPoint() was called with a single-argument callback. For a two-argument callback, an exception is raised:

<type 'exceptions.TypeError'>: cb() takes exactly 2 arguments (1 given)
Steps To ReproduceExecute

def cb(point, obj):
    if point:
        print "got a 3D point: ", point

FreeCADGui.Snapper.getPoint(callback=cb)

then press Esc.
TagsNo tags attached.
FreeCAD Information

Activities

There are no notes attached to this issue.

Related Changesets

FreeCAD: master 9c899813

2016-05-29 03:35:14

yorik

Details Diff
Draft: solved bug in snapper - fixes 0002563 Affected Issues
0002563
mod - src/Mod/Draft/DraftSnap.py Diff File

Issue History

Date Modified Username Field Change
2016-05-26 12:44 plasticsun New Issue
2016-05-29 01:35 yorik Changeset attached => FreeCAD Master master 9c899813
2016-05-29 01:35 yorik Assigned To => yorik
2016-05-29 01:35 yorik Status new => closed
2016-05-29 01:35 yorik Resolution open => fixed