Pulsonix User Forum

Technical advice from Pulsonix engineers and the wider community.

 All Forums
 Help with using Pulsonix
 Scripting
 Ask user for a value in python

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON

   Upload a file

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kst Posted - 22 May 2017 : 07:31:32
Hallo all

Is there an (easy) way to ask the user for values (numbers or strings) within a Python script - something like the Message Method in the Application Object but with input capabilities?

Also the askinteger function from the tkinter.simpledialog package would be fine, but it seams tkinter is not supported here (at least pulsonix scripting rises an error in the line tkinter shall be imported)...

thanks
KST
1   L A T E S T    R E P L I E S    (Newest First)
marc Posted - 21 Mar 2024 : 11:38:06
Not sure if this is still an issue?

But python scripting with tkinter is running without any problems (except some issues with python scripting generally :-) ).

Attached you can find a screenshot from my python Pick&Place Export Script including a full GUI made with tkinter.

Image Insert:

118.85 KB

if you have any questions on how to get it running, feel free to ask.