Graphical Front-end for Python script [closed] - python

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 7 years ago.
Improve this question
I wrote a python script here Github
It is just something I wrote to practice. The script asks for a input directory and output directory and the method of compression and then compress the files from input directory and stores the compressed archive to the output directory.
I want to make a graphical frontend for this script. I am using Ubuntu 10.10 (GNOME).
Is it possible to do so?
If yes, then where should I start?
I want to do this just for learning purposes.
Thanks

It's certainly possible. There are a ton of GUI frameworks available so you'll have more then enough choices. Given your OS is Ubuntu I would look into PyGTK first. I personally found PyGTK fit my brain pretty well and I really liked the documentation. The fact that it's the native toolkit for your Window Manager is a nice plus in that your app will hopefully look like the other Gnome apps you're already running.
Of course you could use Tkinter which is bundled with Python and cross platform. Or you could look into using PyQT or wxPython.
To be a little crazy, since this is a learning exercise, you might want to use something lower level so you might look into something like Pyglet or Pygame and spend some time learning how to build your UI widgets.
If you're looking for touch interface or iOS / Android support then checkout Kivy
Good luck.

Kivy also looks like a good alternative.
Kivy - Open source Python library for rapid development of applications
that make use of innovative user interfaces, such as multi-touch apps.

I found PyQt pretty easy to get up and running with. Check out the wiki docs here.

I find MVC a very good design pattern to use in this case, so, you might try to salvage your code (it seems very simple).
For a GUI framework, I suggest Mike Steder's response, and this list and a large list found here.

Related

How to create desktop applications using python [closed]

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 8 years ago.
Improve this question
I have been writing desktop application in c# and of the experience of writing my code in VS, compiling it and let .NET framework do the running and execution.
Now I want to develop desktop applications using python. I am new to python.
Speaking of UI programming, please suggest which framework is best for rich desktop app programming and why, remember I'm coming from a tool like WPF. Also Please suggest any useful tutorials to start developing desktop applications using Python.
I think that answers will be very subjective.
If you are not familiar with python, I suggest you to try few different tutorials and books. If you have experiance with C#, may be Python reference will be good for you: https://docs.python.org/2/reference/ Also, python documentation is pretty good.
After you become more or less familiar with python, than try different Python UI frameworks. Find some 5 popular fremeworks, compare their advantages and disadvantages in terms of problem you are going to solve.
Than just try few of this five. Also lots of popular python books contain chapters about python applications with GUI.
I'm now sure if StackOverflow rules are allow to suggest any specific books. Here the list for python UI frameworks (with a short description): https://wiki.python.org/moin/GuiProgramming
You can look for PyQt and Tkinter.

Python for Android [closed]

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 9 years ago.
Improve this question
I had a look at Kivy,but the problem is it needs a virtual machine to run apps. Isn't there a way where python codes are directly converted to java bytecode which can be run by android without any virtual machine? What are the merits/demerits in terms of performance?
May be something in jython which would help?
Try SL4A for running Python code directly on your device. It requires no compiling, conversion to bytecode or virtual machines.
More information Here
Also, you can download an IDE (I've used Eclipse, like in the tutorial you will find on the site), installed a plug-in, created my source files there and then uploaded them to my phone, if you're uncomfortable with writing code on your device.
This page has full instructions on how to package a Kivy app into an APK: http://kivy.org/docs/guide/packaging-android.html
I think some one mislead you a lot or you are confused about how things work with kivy.
I'll take this opportunity to try and make things a bit more clear.
Kivy can be used to build stand alone apk, only if you had searched kivy in google play. This link shows a list of apps that mention kivy, there are a lot more apps there that use kivy and just don't mention that. There is also a partial user maintained list you can look at. You can install the apps from google play and you'd see that they are self contained and don't require you to download anything extra.
There are very easy instructions available on how to build a apk in the link mentioned by #Marcins.
Every python code passes through the python interpreter usually pre-compiled to pyc, that's how python works even Java uses a virtual machine JVM, Android's implementation uses Dalvik VM. You can learn more about the VirtualMachines used in the languages like java/python here. The python interpreter/vm consumes the code and executes it natively, it doesn't convert it to java byte code.
if you need to make something that needs more performance then you can even use cython with kivy to get more speed.

Creating Graphical User Interface (GUI) in Python [closed]

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 work mostly with Matlab but I am little bit familiar with Python as well. I have never created a GUI before, however, I have been suggested to develop a GUI for an important project in Python and not in Matlab.
Considering this situation, are there any suggestions that you would like to give which could help me create GUI in python in a time period of a month? Also, I would like to know if I can use Python's Spyder IDE and create GUI from that platform?
I suggest that you look through this list of Python GUI frameworks and choose one based on the needs you have for your application.
http://wiki.python.org/moin/GuiProgramming
Different frameworks will help you solve different UI related problems. Keep in mind the platform that your app will be used on, as some frameworks are platform specific. I personally have used WxPython and TkInter, and they are pretty good for basic interfaces. If you are looking for more advanced graphics then Kivy might be good to look at.
I would definitely vouch for wxpython. It's very good for advanced GUI work.

Android Python Programming [closed]

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 8 years ago.
Improve this question
Can I program for Android using Python? I seem to have stumbled upon many links while searching... however neither of them is concrete.
Any suggestions? I want to write apps for Android but really don't want to get into Java for all this.
PS: My question is whether I can write proper, full fledged apps for Android.
Checkout Kivy. They have done a really great job so far, and I am a big fan of their work. It is still lacking some providers, but they keep adding new stuff to it everyday. First thing you need to do is to check your requirement against what they can offer based on their documentation. They have create an amazing framework for input such as multi-touch or pen handling. They use OpenGL ES internally, as a result complex graphics and visualizations can run very fast when interacting with the the application. Their process for creating an apk is also very straight forward.
Check the new Python for Android project.
Edit: This is not Kivy, this is a seperate project, intended to be a toolchain usable for other toolkit. The architecture is modular, and you can include new recipe for including new python extensions (as brew, macports, cygwin etc.).
Edit: This is not Py4A, but python-for-android.
This is great for starters:
Embed Python 2.7 interpreter and your scripts into an Android APK
No, not currently. ASE (Android Scripting Environment) allows you to do simple script apps, but you can only write proper Android apps in Java.
Yep, you can.
Check ASE
Edit:
Ok, after comments:
I haven't read the question properly. No you can't write write proper, full fledged apps for Android, but anyway check ASE. It is really cool project.

Making GUI applications on Linux/Windows. What languages/tools to use? [closed]

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 7 years ago.
Improve this question
My student group and I are trying to continue working on a project we worked on this semester over the summer to become a professional, deployable app. We originally did it in Adobe AIR but it seems now that the computers this program will be running on will be very slow, maybe 600mhz and 128-256mb ram so flash just isn't going to cut it. It is basically a health diagnosis application that we will be shipping out to impoverished countries.
Now comes the real question. We are wondering what language to rebuild our application in. It has to have a good gui builder associated with it, like adobe flex/air gui builder or visual studio's gui builder but the application should run on linux primarily, and if it can run on windows thats just a plus. We are all students too without really any outside help so whatever we decide to do this in there must be ample documentation available when we hit problems.
Some things we have considered so far are using python and glade or c# and monodevelop, but again we really are not experts on any of this which is why I am asking for help as I would rather spend the time now choosing the right tools instead of wasting time down the line when we hit a roadblock.
Thanks in advance!
I see answers pushing wx and gtk, so I can't avoid pushing Qt, my favorite!-) With a major corporation standing behind it (Nokia), two excellent sets of Python bindings (PyQt and PySide), support for Python 3, the superb Qt Designer, great Mac and mobile support too... it's seriously hard to beat...!-)
The closest thing is probably going to be gtk# with monodevelop. It has a slick, Visual Studio-like ide, and the resulting programs will run on Linux and Windows. The language would be C#. I think this would be the best balance of performance and ease of use.
Alternatively, PyGtk is nice, and you can use Glade for the GUI designer, but it isn't quite as integrated as Monodevelop.
For such low-end hardware I suggest wxWidgets or wxPython, using wxFormBuilder to create dialogs. You can use MS Visual Studio, Eclipse or CodeBlocks as development IDE. The latter two work on Linux well. Alternatively, you can use some simpler programmer's editor like Geany or Kate.
To access really low end computers, and if you have no real graphics requirements, you could consider a text mode interface - curses/ncurses for one.

Categories

Resources