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 8 years ago.
Improve this question
Can somebody point me at a good tutorial for py2exe? I've read over the official tutorial but it is rather light on details, compared to all the options one can use when building an executable out of a python script. For the record, my python script uses Python 2.5.2, wxPython/wxWidgets 2.8 and MySQLdb 1.2.2; so if you have specific tips for py2exe with those packages that would be much appreciated (and yes, I've seen the Py2EXE and wxPython page).
Regarding "Py2EXE and wxPython", the page mentions the import statement "from wxPython.wx import *". This is the old wxPython (several years old, I think). In my app, I just do "import wx", and I don't have any major troubles.
I have one tip for wxPython and py2exe: you need a manifest if you want your app to look any good on Windows XP. This email has details: http://mail.python.org/pipermail/python-list/2004-June/268126.html
I'm going to release py2exe GUI so that you can easy compile your apps without writing setup scripts. More info here
Don't know about a better tutorial, but there is some information to be found at the news list.
http://news.gmane.org/gmane.comp.python.py2exe
Since this question was asked, I've updated the official py2exe tutorial to include substantially more information about bundling the Microsoft C runtime DLL.
http://www.py2exe.org/index.cgi/Tutorial#Step5
If anyone reading this question knows about things which they think are missing from the official tutorial, can I encourage them to add that knowledge to the official tutorial, which is a wiki.
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 5 years ago.
Improve this question
I recently learned python for scripting for Maya and other applications. As someone who sees big potential within scripting I use my self-written script pretty often to speed things up. But there is kinda missing the easy-to-use aspect. I always have to copy them from Sublime(Text Editor) into Maya. Thats when I asked my technical director how to implement a window for my scripts. He suggested QT for it, but even though I already created some simple window, I cannot get it to work in Maya with python.
I did not find any very useful tutorial for that :/
Is there maybe a full tutorial for that? Or can somebody help me?
Importing your windows as a module, attaching functions to buttons and so on.
I think it would be interesting for many people who wants to learn python for some applications.
Thanks ahead!
Okay I found the answer myself after looking even more.
Here is a youtube link for a video from the "Maya Learning Channel" who shows it pretty well.
He is neither using PyQt nor PySide. Did not even know it works without these.
Good luck other people! ^^
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 8 years ago.
Improve this question
I've been writing and using short Python scripts (~100 lines) for various tasks in Ubuntu using the Geany text editor, which I like for it's simplicity (setup, F5 to run, etc.) and syntax highlighting.
I would like to know if there is a similar application for Windows. Because what I've found so far requires downloading 3 different applications or using a big IDE like eclipse.
You can use the Geany build for Windows
You can still use Geany to run Python in windows.
But if you need to debug, auto-complete and beautiful IDE, I suggest that you head for pycharm.
Microsoft's Python Tools for Windows now works as a plugin for Visual Studio Express (and not just the paid version of Visual Studio) so you get nice free solution that has everything you need with a pretty simple install. It can be found at: http://pytools.codeplex.com/
Any good programmer's text editor will do. I personally use SublimeText 3, but I've used Eclipse + PyDev before to great success, and the usual suspects (emacs, vim, Notepad++) will work just fine too.
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 starting to develop interfaces for my python applications , but I've seen that there are diferents tools to do it, so I would like to know which could be the best, I need something, easy, portable and pretty results. I hope that you can help me.
Pick the one you like, there's no "the best" here.
Personally I like PyQt4, because I like QT4, and py2exe works perfectly fine with it, wxPython is another good thing, but it does not work very well under Windows, see my question here: wx.App (wxPython) crash when calling
You can check some application developed using each frameworks, and see if you like any.
For PyGTK - Glade should be your best bet. Similarly, Rapyd-Tk seems to be good for TK. Though for Tk, I would advise you to try with the articles which help you build from the code and then go with the builders. This answer in SO provides the wealth of options available for building GUI using WxPython.
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
There're tons of apps/widgets for PHP function reference and even for Ruby but I'm shocked to find there is nothing available for a popular language like Python (besides the official online documentation ofcourse).
Is there really not a single handy reference widget/app available for Python? I have 'Pocket Reference' book, but a dashboard widget would be so handy!
Python libraries have (or should have) built in documentation through docstrings. Also, python code is (mostly) very readable, and reading the source (.py or even .c) is actually the preferred way for many developers to get the information they're looking for, especially since some corner cases may not even be documented.
I've caught myself looking through the source now and then, as if it's a natural step in looking up functionality, either because I'm curious how they solve the problem, or because I reckon it's faster than googling obscure problems and reading SO questions.
So it's (often) not very pretty at all, but it's possible that the pydoc command line tool, or pydoc in webserver mode, could help you here. Here's an article on pydoc to help you get started
The interactive interpreter is a fantastic reference tool. dir(<identifier) lists all the attributes of a module, class, or function help(<identifier>) gives you help about same.
pydoc at the command line is another great tool. It does for Python what man gives you for commands, plus it even includes a web server you can start up to see the documentation in your browser.
I develop on Mac OS.
I have all the Python documentation directly available through a desktop app.
The app is called Safari. I bookmark http://docs.python.org/index.html
It's available as a desktop app.
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 8 years ago.
Improve this question
I'm working on a project that has to read and manipulate QuickTimes on Windows. Unfortunately, all the tutorials and sample code at the Apple site seem to be pretty much Mac specific. Is there a good resource on the web that deals specifically with programming QuickTime for Windows? Yes, I know that I can bludgeon my way (eventually) through the Mac stuff and eventually get something to work, but I would really like to see a treatment of the cleanest and best way to deal with it on Windows and what gotcha's to beware.
For extra points, it would be cool to see how someone might use the QuickTime API from a dynamic language like REBOL or Python (no, the Mac Python QuickTime bindings don't count!).
Thanks!
QuickTime For Windows starts off with the differences between Mac OS and Windows programming and Building QuickTime Capability Into a Windows Application then discusses how to incorporate the capability into Windows platform
There is an official mailing list for QT developers. It has an archive. It would certainly be worth subscribing to it if you are seriously trying to use QT for something, especially if it is the slightest bit off the beaten path.
IMHO, the official docs are more than a little too Apple-centric. Note that the Windows book assumes you already have experience with QT on Macs. At the time I was looking (about a year ago), I had a mandate to deal with QT from .NET, either from C# or managed C++. That was not a well documented way of doing things then.
There is a body of sample code for Windows somewhere at the Apple developer site, which might help if you can find it. I seem to have lost the links I had at one time. Just knowing it does (or did a year ago) exist might be enough to nudge you in the right direction.
Almost all of the sample code available is ordinary C or C++.
I have started a Google code project with my QuickTime for Windows code at code.google.com/p/qtip. The idea is to structure things in a semi-tutorial fashion (as I learn this stuff myself!) so that others can learn from my pain...