Python programming in Linux?

Chat about just about anything else
User avatar
Old Marcus
Level 4
Level 4
Posts: 391
Joined: Sun Jun 08, 2008 4:51 pm
Location: Exeter, UK
Contact:

Python programming in Linux?

Postby Old Marcus » Tue Nov 18, 2008 7:36 am

i want to start programming python in linux, I know some of the python basics, but I want to create guis using python. I know it's possible, I was just wondering what would be the best way to learn. I think Clem uses python gtk + glade, but I'm not sure, anyway, any good resources out there?
Linux Mint 8 RC1 = Nice
'apt install' can be used on Linux Mint as a shortcut for 'sudo apt-get install'. 'apt x' can be used for various other apt commands as well.
When a problem is solved, please add [SOLVED] to your thread title.

Husse
Level 23
Level 23
Posts: 19594
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Python programming in Linux?

Postby Husse » Tue Nov 18, 2008 5:43 pm

For starters gedit has a decent python console
Then remember google is your friend - google python + linux - lots of links....
One you'll find is
http://docs.python.org/tut/
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

brightstar
Level 1
Level 1
Posts: 7
Joined: Sat Oct 18, 2008 7:31 am

Re: Python programming in Linux?

Postby brightstar » Mon Nov 24, 2008 1:43 am

2Old Marcus

Python is great.

But for really good GUI, it's better to use C+(Qt) and C# (Mono & use GTK).

And does Python work with 3D?
I saw only 2D (sprites, not polygon) graphic, which use Python in OpenGL.

almigi
Level 1
Level 1
Posts: 19
Joined: Sat Dec 20, 2008 1:36 pm
Location: Fairview Park, Ohio, USA

Re: Python programming in Linux?

Postby almigi » Thu Dec 25, 2008 3:17 pm

Husse wrote:For starters gedit has a decent python console


IDLE is a pretty good environment too. It's in the Ubuntu repositories, just get it from synaptic or "sudo apt-get install idle"

haukurph
Level 1
Level 1
Posts: 9
Joined: Tue Aug 30, 2011 2:17 pm

Re: Python programming in Linux?

Postby haukurph » Wed Aug 31, 2011 5:19 am

For Python I use the Terminal and bpython. Sometimes IDLE.
Anyway, I just discovered Perl is included in Python. Which programming languages are supported out-of-the-box?
Python, Perl, Java, what else?

Kendall
Level 7
Level 7
Posts: 1566
Joined: Mon Nov 16, 2009 12:20 pm
Location: Asheville, NC, USA
Contact:

Re: Python programming in Linux?

Postby Kendall » Thu Sep 01, 2011 4:11 pm

haukurph wrote:For Python I use the Terminal and bpython. Sometimes IDLE.
Anyway, I just discovered Perl is included in Python. Which programming languages are supported out-of-the-box?
Python, Perl, Java, what else?

Wow, way to bring this one back from the dead! :wink:

Perl isn't included in Python, it's a separate language that also happens to be included in the majority of Linux distributions. Java is also usually not included by default in a large number of Linux distributions, it just so happens that it is usually included in Mint. Fortunately Java is usually easily installed as are other scripting languages such as Ruby.

Interpreters such IDLE (Python) and irb (Ruby) are fantastic to use to learn with and to do some quick prototyping in but production scripting is stored in text files and executed. It's worth noting that Python also gives you the option to compile to byte code in order to optimize for speed and/or close the application source.

User avatar
overthetop
Level 4
Level 4
Posts: 366
Joined: Thu Oct 06, 2011 10:25 am
Location: /home/overthetop

Re: Python programming in Linux?

Postby overthetop » Tue Oct 11, 2011 4:28 pm

Though simple, don't underestimate Tkinter. Its simpleness makes it ideal for many tasks.
Also try http://www.awaretek.com/toolkits.html.

I love python! It is powerful and fun. :D
I hope you find what you need! Good luck!
Image
"A wise man can learn more from a foolish question than a fool can learn from a wise answer." -- Bruce Lee

User avatar
nunol
Level 9
Level 9
Posts: 2653
Joined: Sun Mar 06, 2011 9:25 pm
Location: Portugal

Re: Python programming in Linux?

Postby nunol » Tue Oct 11, 2011 4:53 pm

In DistroWatch Weekly, Issue 426, 10 October 2011 there is news that the Ubuntu team has launched a new app developer website: http://developer.ubuntu.com/

They have a video about "Getting started with Quickly and PyGTK": http://developer.ubuntu.com/get-started/

They say:
Use Quickly to build your first Ubuntu app. It's easy.
We recommend using PyGTK to create applications for Ubuntu. We have created a tool called Quickly which gets you up and running with PyGTK and all the tools you need right away.
Looks very nice.

fred83
Level 1
Level 1
Posts: 1
Joined: Mon Nov 14, 2011 6:44 am

Re: Python programming in Linux?

Postby fred83 » Mon Nov 14, 2011 6:46 am

As another commenter said, Google is your best friend...
But why focusing on Python?
What did you say?! coupe faim efficace

User avatar
nunol
Level 9
Level 9
Posts: 2653
Joined: Sun Mar 06, 2011 9:25 pm
Location: Portugal

Re: Python programming in Linux?

Postby nunol » Mon Nov 28, 2011 6:36 am

fred83 wrote:...But why focusing on Python?


Why not? It's even recommend by Ubuntu:
While Ubuntu and the applications that come with Ubuntu are written in many different languages, from C to Java to Haskell, when writing something new we recommend using Python. Many important parts of Ubuntu are already written directly in Python, and we work to make every important API and framework within Ubuntu available from Python. Python includes a rich standard library and a vast set of third party modules, so there are libraries available for just about everything you can think of.

http://developer.ubuntu.com/resources/p ... es/python/

slim12
Level 1
Level 1
Posts: 1
Joined: Thu Dec 01, 2011 9:19 am

Re: Python programming in Linux?

Postby slim12 » Thu Dec 01, 2011 9:21 am

I find Python very hard to read... Even when I wrote the code myself!

User avatar
darethehair
Level 3
Level 3
Posts: 199
Joined: Sun Mar 08, 2009 2:22 pm
Location: Morden Manitoba Canada
Contact:

Re: Python programming in Linux?

Postby darethehair » Thu Dec 01, 2011 9:31 am

slim12 wrote:I find Python very hard to read... Even when I wrote the code myself!


Actually, I *love* the fact that Python enforces proper indentation for readability -- wish that all languages would have done that! :)
There is nothing more dangerous than a bored cat.

User avatar
overthetop
Level 4
Level 4
Posts: 366
Joined: Thu Oct 06, 2011 10:25 am
Location: /home/overthetop

Re: Python programming in Linux?

Postby overthetop » Fri Dec 02, 2011 12:01 pm

darethehair wrote:
slim12 wrote:I find Python very hard to read... Even when I wrote the code myself!


Actually, I *love* the fact that Python enforces proper indentation for readability -- wish that all languages would have done that! :)


I second that one! :mrgreen:
Image
"A wise man can learn more from a foolish question than a fool can learn from a wise answer." -- Bruce Lee


Return to “Open chat”

Who is online

Users browsing this forum: No registered users and 4 guests