New to programing(learning python3) and I'm wanting to use kivy. Just wondering how people recommend learning it all and what exactly needs to be learnt in order to make small games and apps(I'm thinking for android but not sure yet) using kivy and python. Basically what do I need to learn first, how much do I need to know and what(if anything) else needs to be learnt?
Check out this url
Where it reads:
Note
Python 3 support on Android is now available experimentally.
You may better practice on Python2 where Kivy works. I gave some hard shots on make it work on Python3 but it failed in most cases.
Related
1)I am new to programming and was wondering how one would go about getting an image from a file location to the screen in python without having to import any modules (if this is possible).
2)Maybe what I am really asking is for a tutorial or an advance tutorial on python, computer programming in general, or maybe some tutorials in computer science. Some direction and guidance on where I can answer all of my question about what is part of the python programming language and what is made for quick and easy coding would be appreciated. (An example question of what I would liked answered is "can I make every built in and downloadable python module using just python code or is lower level coding needed and if no lower level coding is needed what is the python code to make these really cool modules"?)
(I took a beginners class in python and have become extremely fond of computers ever since. Now I have been teaching myself C++ and Java and just want to understand the details behind these languages and want to understand how computer scientist and software engineers create the things they do so sorry if I ask a lot of questions.)
1) Of course it's not possible. You can open the image file, but to render it on the screen you need some sort of graphical toolkit, and you need to import modules to do that.
In fact, only the absolutely most common things are, as it's called, "built in" in Python. You need to import a lot in Python, and there is no reason for you not to do this, so the question in itself doesn't make sense.
2) There are tons of tutorials that do what you want. One of the most popular ones are "Learn Python the Hard Way". I've looked at it briefly and it seems good.
I want to impliment some kind of UI for my Python programs (some simple operations, nothing advanced).
So I looked around and considered ncurses and tkinter for python. Yet I am not sure which of these two would suit best my needs for a simple interface (in the sense of easy to learn to program) with the best output possibilies. It does not have to be fancy or anything, just help me visualise my code (lets say a text based chess game).
intuitively i would take tkinter, but could you probably just summarise for me the advantages of the two UIs? (in addition ncurses does not seem to have a good tutorial for python...)
Thank you in advance!
I would like to suggest tkinter as it comes with python and compare to other GUI packages it has good tutorials. And also it will help you to improve your OOP concept for python
If you plan on using your application across platforms, Tkinter or PyQt are both good choices. If you want a GTK+ application that matches your GNOME environment and don't plan on using the application on other platforms, then I would suggest using GTK+ via gobject-introspection (from pygobject). In Fedora, you should have support for it out of the box. Other distributions may require the installation of additional packages.
For more information on the above bindings, see:
TkDocs
The Python GTK+ 3 Tutorial
(Sorry I couldn't post a link for PyQt because I don't have enough reputation to post more than 2 links.)
Additionally, it's worth noting that both PyQt and GTK+ have interface designers available so that you don't have to create your interfaces programmatically if you don't want to. For PyQt I believe Qt Creator comes with an interface designer. For GTK+ you have Glade.
How do I start contributing to GNOME? I can program in C++ and Python, but have never touched C. I am not familiar with GTK even.
To be honest, I have no idea how GNOME works. All I have is a deep desire to somehow contribute to it.
Where do you recommend do I start? Any tutorial, mailing list or anything. I am ready to do the hard work, I just need a direction.
PS: I could have googled for the problem, but nothing beats the experience I have seen since Google returns SO for most of the questions.
Visit Join GNOME.
Figure out what you want to do for them
If it's development, then:
learn C and GTK
checkout the source code
browse through the bug-tracker to find a reasonably sized task and ask for help of more senior committers to tell you what is at your level
fix it and submit a patch
wait for roses and glory
But maybe you can help with other things, as mentioned on Join GNOME
Translations
Design / Artworks
Technical Documentation (review, proofreading)
Best of luck and thank you for trying to contribute.
Be sure to check out GNOME Love as well. It's a site aimed at getting people started with GNOME.
You may find it handy and useful by creating new extensions for Gnome shell.
There are a lot of extensions on https://extensions.gnome.org/. It requires JavaScript programming. It will also give you insights of how things work in Gnome.
start simple program with below manual.
The GTK+ tutorial
GTK+ 2 Reference Manual
GTK+ 3 Reference Manual
show your program here: http://www.gtkforums.com/ (Project Showcase)
also to note:
you don't have to learn C (even though it's a good idea). You can use PyGtk for GTK development in python (but i won't recommend that because of the speed of python).
GTK bindings for c++ also exit it's called gtkmm. It have binding for many other librays (Cluttermm, Cairomm, Pangomm).
there are bindings for A LOT of languages but native C is the best solution.
I would recommend learning vala because of it's ease of use but also because of it's speed (but that's just personal preference).
also check the gnome-devel-demo out. can be useful
What are the current rules for writing python code that will pass cleanly through 2to3 and what are the practices that seem to be best suited to writing code that will not become mired forever in version 2.
I have read from the SciPy/NumPy forums that "100% test coverage" (unit testing) is important for many people, and I am not sure if that would apply to everybody. Certainly having a reasonable set of unit tests to try your code out with after conversion, seems a sane step.
Are there other things? What are skilled Pythonistas doing if they are writing 2.x code that they hope to have come through "cleanly" in the 2to3 process.
I am looking for specific instances of "[don't] do this" as well as some more general "best-practices", but specific instances of "do's and don'ts" are helpful.
Let's assume that frameworks, libraries (Django, SciPy/NumPy), and every other C Extension we need gets ported to Python3 eventually, and I'm asking about how you write and maintain the pure python language code that you write yourself.
Update: It's possible that what I really want is the "style guide" and list of deprecated features that everybody was already staying away from. I cut my teeth on Python 1.5 and moved to 2.0, and then have not really followed much of the 2.5/2.6 era, used them but really my code is more 2.1 era.
I'd say:
Read the "What's new for Python 3.0". Very informative.
In particular, if you care about Unicode or text encodings at all, take the time to understand what has changed for 3.x. That's probably one of the trickier things to change for Python 3.x.
Get Python 2.6 or 2.7, and run your code with the -3 flag. It will tell you about things in your code that will need changing.
Before using 3rd-party packages, check to see if they have a Python 3.x version. If not, check the package web site, mailing lists, version control repositories etc to see how actively the package is being developed and whether there is a roadmap towards Python 3.x support.
Download Python 3.x and try it out! Admittedly, that might not be practical if you care about code that currently depends on packages that don't yet support Python 3.x (e.g. wxPython or Django).
I want to develop multimedia encoder for Linux.
I want to make use of ready command line codecs like ffmpeg.
I want to build nice GUI for that & pass arguments to command line encoders.
I am thinking to use Qt. (Is it possible?)
I don't know anything about Linux programming, but I have been an Ubuntu user for 8 months.
Please provide me with links to tutorials. (I've tried the Ubuntu forums but it's all beginners stuff in there!)
I am in need of tips from you guys. I am ready to learn everything about it!
I am ready to learn new languages.
Thank you!
Funny story, actually. Two years ago, I developed this for a GTK frontend. You can grab the code at vive.sourceforge.net. I since abandoned it when nobody was using it and I had no need for it, anymore, but the code is still there and you're absolutely free to go tear it apart, laugh at my mistakes, and take what you can from it.
I will warn you, that code is fairly laughable. I was learning C and GTK at the time, so be easy on me :)
If you'd like to take it over, I'd be glad to turn it over!
It looked like this: