Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
NOTE: System will not be connected to a network
I'm automating a device and need to create a script that will communicate with the micro-controller (to drive the motors) and with the original software (Thermo Fisher Scientific). The original software has a GUI interface but no API.
My original thought was to write a python script to first set the motors to the correct position -> then run the software -> save the data -> repeat.
I know how to communicate with the micro-controller to set the motors, but I'm unsure of how to communicate with the original software. Any advice on how to do this with python would be much appreciated.
Alternative methods are also welcome.
Thanks.
I have used AutoIt to solve similar problems. There is a Python extension available (I have never used this).
AutoIt v3 is designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks.
When using the python extension you will be able to directly interact with the GUI app from your source code.
Alternatively you can also just build an Autoit executable to drive the software if the input into the GUI software is always the same.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have started a project and to test if it works, I used a Pi zero. It has buttons and then sends MIDI Messages to my PC, depending on what buttons are pressed. So a simple MIDI Controller.
Now I think that a Microcontroller, like the Pico would be better suitable for such a task, but it can only run MicroPython.
So my question is, wether you can import most or all of the python libaries into microPython or if I should use another MicroController that can run python.
Usually "no." It won't fit.
So my question is, wether you can import most or all of the python libaries into microPython or if I should use another MicroController that can run python.
While MicroPython shares much of the syntax of Python (3.4), it is different enough that anything but the most trivial Python code will not run under MicroPython. In general, you should only expect to run code developed explicitly for MicroPython on a MicroPython capable device.
So my question is, wether you can import most or all of the python
libaries into microPython or if I should use another MicroController
that can run python.
I don't believe there are any microcontrollers available that can run standard Python. The smallest device you're going to find is probably something like the Raspberry Pi Zero.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I currently have a bash script that installs a web server with many options and features.
Currently I download the script on the remote linux server and execute it via ssh.
This script uses Dialog so that the end user can enter information such as user name, password to create. Path to use, domain name etc....
I would like to rewrite this script which has become huge in python, keeping an interactivity of the same type (dialog). Is there a solution / module with python? Knowing that the remote server on which the script run is a server without a graphical system like Qt, Gtk just console. I think it is necessary to use curses
bash dialog definition :
Dialog is a utility to create nice user interfaces to shell scripts,
or other scripting languages, such as perl. It is non-graphical (it
uses curses) so it can be run in the console or an xterm.
exemple:
I'm looking for an equivalent on python
Thanks
There are several different ways to create dialog box type UIs for python. PyQt is one of the more powerful ones. Tkinter is also handy for simple tasks. Or at least I like to use it for simple stuff. Either one should get what you need. There's probably more I missed as well.
EDIT
If it's a CLI you want, there are plenty of tool. Here's a neat looking one.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need some general advice here. In our (large) company we have an already established test and build infrastructure that is based on MS TFS to build and test our products. Quick facts:
mostly C++ and C# code
system-level software
relying on lots of pre-configured build agents
supported by folks with TFS expertise
For a new Python project (which is not a web-app either) we need to set up a CI. My idea is to piggy-back on the existing unified infrastructure and take advantage of Docker container. Here is my idea: on every check-in into Python project's repository launch a dedicated TFS build which
pulls the code
builds a Docker container or image
runs the tests inside it
and...?
And here is the question: what is the best way to interact with the outside world? How would you advice to push results out if we're not planning to build a web-app? Ideally I would like to keep only the failed tests' artifacts while not even keeping all those containers from every check-in.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am developing a program to use as a pedagogical tool in my classroom. I'm writing currently writing it in Python, but I'm also open to solutions that would use C. I want to create a standalone application for Mac (.app file) for my program, but I only need text-based interaction with the users (i.e. just STDIN/STDOUT, and not a GUI). The majority of my students do not have python installed and have no experience with Terminal/shell scripting.
I tried using Platypus to create this application, but I get an error, as shown below.
I later realized that Platypus does not support prompts for user-input. Is there anything like Platypus that would also allow me to prompt users for input?
As I say, I'm also open to solutions to my problem which would involve transposing my Python code into C and going from there.
I don't know if you have thinking about make a web app, in Google App Engine for example is very simple to deploy a Python based web app really fast, using webapp2 for example. And all your students could use your app online, this is a good getting started. But if you want maybe you could to build a command line app deployed in some server and your students could connect with ssh to use it.
It depends what kind of systems your students have and it is highly unlikely that they will have similar kind of system. For least dependency i think you can use java to write your application. For java they just need to install jdk and can run your shared jar.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I am pretty familiar with building web based apps using python django on my linux machine. But when I decided to try my hand at building desktop applications that can run on windows/linux I didn't know where to begin.
I know I can surely build windows desktop application on windows machine. But I am pretty comfortable with linux and don't want to get out of that comfort zone. Can anyone guide me as to what tools can I begin with to develop a simple windows desktop application. I would target windows 7 for starters.
Any guidance is hugely appreciated.
What you are looking for is a GUI tool-kit with bindings to python. Tkinter is the de facto standard for python GUI and is cross platform. Qt is also a popular choice but the license is more restrictive then Tkinter but will allow you to transition into C++ programming with Qt easier if that is something you may want to do down the road. The choice up to you.
With python, I think your main options are:
Tkinter, the GUI library included with Python.
wxPython, a wrapper for the cross-platform GUI API wxWidget.
Kivy, another cross-platform GUI library.
If you only need a simple application, any of these libraries would be a good choice.