You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psychop...@googlegroups.com
Hi Psychopy Users,
I looking for some help with gui.Dlg. I would like to input e.g. text 20 characters long and have whole text displayed on the screen. When I use guy.Dlg I can see only 6 characters of the text.
can I ask you for belt how to set the input window size.
regards,
tomasz
Jeremy Gray
unread,
Dec 15, 2013, 11:09:43 AM12/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psychop...@googlegroups.com
Hi Tomasz,
I think you are referring to the gui.Dlg.addField input box. There's
not a way to control its length directly. But you can control it
indirectly by giving an initial value that is the desired length (20),
with all spaces. You may need more than 20 spaces to allow display of
20 characters when using a proportional font.
d = gui.Dlg()
d.addField(label='larger input', initial=' ' * 20)
d.show()
Then you can do .strip() on the returned value to remove the trailing spaces.
--Jeremy