← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #696153]: Font for select -Combo

 

Question #696153 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696153

    Status: Answered => Open

Jeff_Vallis is still having a problem:
Nearly there It doesn't deal with spaces as I expected - 
Example

items = []
items.append("{  1490} My_Actions      >> Connection Error")
items.append("{   180} My_Actions      Type Login")
items.append("{   287} My_Instructions >> Test Bank Reload if Failed")
items.append("{   280} My_Actions      Bank")
items.append("{  1930} My_Actions      Set Focus Location Top Left")
items.append("{   149} My_Instructions Login")
items.append("{   219} My_Actions      Close All")
items.append("{  3241} My_Actions      Image List to Close")
items.append("{   149} My_Instructions Login")
items.append("{  1930} My_Actions      Set Focus Location Top Left")
items.append("{   490} My_Actions      > System Maintenace Reward")
items.append("{   494} My_Actions      >> System Maintenace Reward Claim")
items.append("{  2084} My_Actions      Reward for Waiting")
items.append("{  2085} My_Actions      Reward for Waiting Claim")
items.append("{   275} My_Actions      Screen Reset Hover and Scroll")

newItems = ["<html><font face='monospaced'>" + item for item in items]
select("select sthg", "my selection", newItems)


items2 = []
for i in range(len(items)):
    items2.append(items[i].replace(" ","_"))

newItems = ["<html><font face='monospaced'>" + item for item in items2]
select("select sthg", "my selection", newItems)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.