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! ^^
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
Recently, I want to use the OpenCV library in Python, but the documentation of Python binding of OpenCV is very unclear and insufficient. I want to ask where to find some detailed documentation of Python binding of OpenCV. Previously I used OpenCV in C++, and the documentation is very helpful, more over I can go to the source code of it where I was in doubt. But the source code of Python binding doesn't provide much information, I think. For example, it takes me a long time to find out that the CV_8UC1 flag is in the module cv2.CV_8UC1, but the flag CV_CAP_PROP_FPS is in the module cv2.cv.CV_CAP_PROP_FPS.
There doesn't seem to be any nice documentations. Sometimes information is provided about the Python API as part of the normal documentation.
To get started and to get a feel for how the Python OpenCV interface works, have a look at the
official Python tutorials.
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 7 years ago.
Improve this question
I already know some Python and got interested in extending Blender using Python scripts. Can anyone suggest me some good tutorials or books to learn this subject further? I'm already looking at Blender documentation, but I would like to learn some more because I'm a newbie when it comes to 3D modeling.
The Blender 2.5 Python 3.1 manual has some good links to both basic internal tutorials for using Python scripts and some tutorials on other sites.
Bear in mind that this is Python 3.1, not 2.x, so you'd have to adjust accordingly.
You'll be using the Blender Python API (not so sure how well it's documented, but you should be fine). I'd familiarize myself with Blender and Python first (if you haven't already), then do some basic tutorials, and finally dive into the API.
Blender 2.65 docs now have a tutorial on how to write an addon, This covers a lot of stuff related to general scripting too - not just addons.
http://www.blender.org/documentation/blender_python_api_current/info_tutorial_addon.html
I found the Blender Wiki very helpful in finding specific functions and procedures built in to Blender. To improve my Blender Python skills, I first decided to program a first person shooter. My first code for Blender was a mouselook script. This gave me most of the basics, and if I needed to, I could probably write a similar script in a matter of minutes now.
Also, a good idea is to look at other people's scripts and follow the logic.
There are many good tutorials for Blender and Python, but not too many for the crossover between them. Really the only way to get round that fact is to surf example scripts and websites. I found the Blender community is very supportive, so if you really get stuck on a small part, just ask.
I'm still a probable noob in the programming matter, but (with the exclusion of the node editor), I know my way around Blender pretty well, so if the worst comes to the worst, email/message me.
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
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.