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 3 years ago.
Improve this question
I'm new on the programming world using python, so i have some questions for desktop aplications development.
1. Im currently using pycharm as my idle, can i use it for my purpose?
2. Can i use peewee as my ORM and Tkinter for my GUI? or should i just use Tkinter?(Recommendations are welcome)
3. I'm planning to use Sqlite3 as my database, should i keep this idea?
My further plan is to make an application to store the networks equipments in an enterprise, like desktops, laptops, switches, etc.
And also get some reports like to wich user belongs a desktop or laptop, wich kind of license does the equip has, a bitacore to store all what happens to an equip, etc.
I'm very new on this world and have been reading, practicing and taking courses for 3 month by now to understand concepts, learn about programming, etc.
Tahnks for the tips.
If you know Tkinter then stick with it, otherwise consider a higher level framework like PyGUI, PySimpleGUI or QT (Arguably not that simple, but plays nicely with PyInstaller). You will definitely be able to keep using SQLite3, as there is an existing binding in python 2&3.
If you plan to deploy this app, then you need to consider if speed is going to be a problem. Python is great but fundamentally quite slow. You can use things like Cython or PyPy to speed it up, but this can get complicated when you look at using a packager such as py2exe or PyInstaller for distribution.
best of luck.
Related
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 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
So, I've built this program using python what is currently running in the terminal.
My goal is to eventually design the application in a modern way like (discord, slack, or any other 2021 downloaded desktop-app),but I'm not really sure what to use.
The thing is, I know React/Electron would be the best way to build/design a desktop application like discord, teams etc. However, I'm looking to keep my python as some sort of backend, while using lets say Electron as front
How can I keep my python functions, while designing a modern GUI/front end?
Thanks for advice
wiki.python.org has GuiProgamming entry, where GUI frameworks for python are enumerated. You need to select framework which does support platform you are targeting. If you are interested in fine control of look I would suggest Kivy cross-platform framework.
You could use the Tkinter python module although it is not to much like react.
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 2 years ago.
Improve this question
I want to ask about the best IDE to prototype programs by using OpenCV library.
I’ve been programming with Halcon for 3 years and I would like to learn how to program with OpenCV too. I was thinking about reproducing some old programs that I have created with Halcon, but instead using OpenCV. The problem is that maybe I’m not using the correct IDE (I’m programming with Python using Spyder) or maybe programming with OpenCV is slower than I have expected (I don't discard the possibility that I don’t know the appropriate way to prototype properly by using these tools).
I already know I come from an expensive program that allows me to work with many comforts, but I miss having a window where I can display dynamically the results of the operations than I’m applying. Also, draw some ROIs quickly. Anyways, do you think I’m using the right tools? Do you know some tutorials from which I can learn how to prototype quickly using that IDE?
Thank you in advance!
My suggestion for OpenCV prototyping in a GUI is a program called GRIP (Graphically Represented Image Pipeline). You can download it from GitHub.
It supports many inputs: single image, multiple images, webcam, and even HTTP cameras. You get all the key OpenCV commands, along with some custom ones developed by WPI.
You develop your image processing flow as a pipeline, with filtering blocks such as desaturate, find contours, etc. in which you string the output from one block to the input of another (or multiple). You can then export the pipeline to Python, Java, or C++ (exported as a usable class with a key process function). If you want to see an example, feel free to check out this previous post I wrote!
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 3 years ago.
Improve this question
I want to make an app, however I cannot use Java or Swift.
Fortunately, I found that I can make apps with Python and Kivy
I read a recommended tutorial book : OReilly Creating Apps in Kivy (2014).
However, the Kivy version in the book is 1.8, the Kivy version is 1.11 nowadyas,
something will be wrong when I test the codes such as ListView ...
Additionally, I discovered that this book integrates python and kv file to make an app.
Many people say that it is better to make an app in pure python.
Hence, I have no idea where I can start to learn Kivy
Can anyone give me some adive ?
Should I continue to learn Kivy with that book ?
I read your question carefully and found solution too.
Personally, I am from India. In our country, people who want to learn Technology or programming, they generally prefer YouTube. You can use YouTube too for learning or finding small 2-3 hour courses on Kivy 1.11.
Also, go to this official Kivy.org link to start with a small crash course
Using book for learning new programming language is typically a boring task. Instead, listen to podcasts and watch videos on YouTube to learn some basics (some starter)
Also, if you are serious enough about learning Kivy, why not to use Udemy or Coursera? Almost every course is available on these both platform.
It finally depends on you to choose a best source for learning. Also make sure that you have enough basic knowledge about Python to get started with Kivy.
Have a nice day!
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.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Opinion-based Update the question so it can be answered with facts and citations by editing this post.
Improve this question
I'm writing a small sudoku game/solver in Linux using python with TUI (not GUI, that's just lame) just for fun. My question is, which lib is better (by that I mean easier to handle, better support, more straight-forward and understandable), the choices are curses or urwid or if anyone have better suggention, and why? I have some Tkinter and wxPython experiences.
Any help or information will be appreciated.
You might want to check out Unicurses, which wraps the python core curses module in UNIX systems and wraps the free pdcurses library on windows-based machines.
This library is designed to emulate the syntax and style of the original ncurses library, so if you're interested in learning TUI design using curses-style programming, then check it out.
Urwid is, from what little documentation I've read, a very interesting library which uses event loops (the reactor pattern) as a basis for application design, much like tkinter or Twisted. Also, urwid has an event loop class specifically designed for use with Twisted, so if your aim is to created TUIs for use over networks, its a good choice. Twisted also uses the reactor pattern, so if you want to learn that style, I'd recommend it.
Finally, if you do go with an ncurses-style library, check out Dan Gookin's book on ncurses. A very good resource, and the only one I know of which is in print today.
There are other options such as newt, pygcurses, and so on, but this should get you started. Best of luck, TUI programming today is one of those technological fetishes that can be hard to break into, but it's rewarding.
While the above is a perfectly reasonable solution for Linux, The OP asked for other suggestions and a justification for them.
Who wants to use a low level API like curses in a modern OO language like Python? Let alone if you are stuck inside Windows (which the OP isn't, but is a problem for a lot of people out there)... There must be a better way.
To try to resolve this, I have put together a simple cross platform class (yup - Windows is included without falling back to PDcurses) to do all the things most people want from their terminal/console. If you're on Linux this is a more human way to program curses. If you're on Windows, the same class works as is with no external binary dependencies. You can find the Screen class in asciimatics.
In addition, I've created a load of highr level objects to create animations and TUIs. For example, this is a recording of a sample using the TUI widgets:
If there's an extra feature you need, let me know and I'll see what I can do.
If your game will run inside a console, then just pick curses.
If your game will run as a GUI application, then just pick PySide.
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 7 years ago.
Improve this question
I'm building an app for a small business so I've to work with currencies, decimal numbers, etc... My goal is to create something like pulseapp.com.
I've searched for opensource projects to look and the only thing I had found was django-cashflow. This app uses python-money.
I've read some of the code and the ways it's coded seems a bit weird to me and it's not fully complete.
Is the app worth to take a deep look?
Does anyone know about another similar app?
Is the task difficult or a begginer like me could find a way to code it himself?
If you're dealing with currencies, you might look to satchmo's codebase. http://www.satchmoproject.com/ They're the current front-runner in Django e-commerce. I'm sure they have money modules.
Here you have something you might be interested:
Tryton with Django
I started to use python-money in an application a couple years ago, but had to abandon it due to some problem. I apologize for forgetting the exact problem, but I do remember for our use case it didn't make sense anyway... we just needed decimal fields.
I'd also be wary of django-cashflow not having any activity for 2 years, although the project is small enough it should be easy enough to fix any problems yourself.
For existing Django accounting apps I would suggest enhancing, or at least looking at, minibooks. NOTE: the license is AGPL v3 which could make it unusable for your environment.
Another road to travel would be to investigate porting OpenERP (also GPL IIRC) from Python/GTK to Django. Tryton might also be a starting point, it's GPL3 and IIRC a fork of OpenERP.
I've written a framework to help speed up the development of customised commerce aspects of django sites: Rollyourown shopping.
It lets your write your models yourself, and uses a declarative syntax to define a summary class, which handles calculating totals, caching and formatting values etc. It's pretty fast for my use cases, and very flexible: I've used it for online stores, billing for consulting-services and auction sites :-)
The current version works fine, but I'll be releasing a '1.0' version later this month as I decide on the final (stable) API details (names etc) and maybe some external reviews.