Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Custom input dialog using the RoboDK API

#1
Hello, I am developing a user interface with the RoboDK Python API and I am using InputDialog. What I want is to cancel the OK, Cancel buttons that come by default with InputDialog. I have reviewed the documentation and could not find a method for this. Is there a way? In addition, is it possible to perform operations depending on other buttons, for example, to provide only int data input?
#2
You can fully customize this function in Python as you can find the source code of the Input Dialog function here:
C:/RoboDK/Python/robot/robodialogs.py

In short, instead of using our default Input Dialog box you could do something like this:
Code:
result = DialogsTk.InputDialog(msg=msg, value=value, title=title, default_button=default_button, default_value=default_value)
  




Users browsing this thread:
1 Guest(s)