← Back to team overview

sikuli-driver team mailing list archive

[Bug 1597639] Re: [request] inputText() should have more options --- fixed 1.1.1 2016-07-03

 

This is now possible: (not yet in the docs)

# selects a monospaced font
# default is False meaning a SansSerif font
Settings.InputFontMono = True

# default fontsize now is 14 (also minimum size)
Settings.InputFontSize = 20

print inputText("please tell a story") 
# default 20 characters per line and 9 lines

# the textarea now has auto-linewrap at word boundary and a scrollbar if
needed

print inputText("please tell a story", 50, 20) 
# 50 characters per line and 20 lines

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1597639

Title:
  [request] inputText() should have more options --- fixed 1.1.1
  2016-07-03

Status in Sikuli:
  Fix Committed

Bug description:
  Hi!

  Could it be possible to bring some custumisation options to
  inputText(), that is a rather useful feature in Sikuli? Currently it
  has such disadvantages: very small text in the message as well as
  user's input text, no scrolling and no text line breaking to be
  visible in the box. I know this is a "notepad in Sikuli" :) but what
  if it is easy to bring such options?

  I got acquainted with
  https://answers.launchpad.net/sikuli/+question/240592 similar
  question, but those solution is not as suitable as oneline inputtext()
  in small scripts and for beginners.

  Well, the text should be a bit larger in the inputtext() at least.
  Other options might be less important currently.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1597639/+subscriptions


References