[1.1.1] select() can't set default=0; can't set default=<unicode string> --- fixed nightly 1.1.1 2016-12-02

Bug #1646399 reported by Alex Lunyov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

#1
select(mytxt, options=mylist, default=0)

throws an error: «Error source first line: module ( function ) statement 433: Sikuli ( select ) TypeError: popSelect(): 4th arg can't be coerced to String».

The first line as default is expected.

#2 It is convenient to set default value both as a string and as an item number. But when I use unicode string as a default value, select() always sets default=0 (=first line):

select(mytxt, options=mylist, default=u"пункт №3") # default=0 actually

Revision history for this message
RaiMan (raimund-hocke) wrote :

Thanks for finding

summary: - select() can't set default=0; can't set default=<unicode string>
+ [1.1.1] select() can't set default=0; can't set default=<unicode string>
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
summary: [1.1.1] select() can't set default=0; can't set default=<unicode string>
+ --- fixed nightly 1.1.1 2016-12-02
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.