Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25705 > unrolled thread

Newbie question on python programming

Started byChris Williams <purplewelshy@googlemail.com>
First post2012-07-21 00:38 +0100
Last post2012-07-21 18:13 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Newbie question on python programming Chris Williams <purplewelshy@googlemail.com> - 2012-07-21 00:38 +0100
    Re: Newbie question on python programming Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-20 18:30 -0600
      Re: Newbie question on python programming Tom P <werotizy@freent.dd> - 2012-07-21 18:13 +0200

#25705 — Newbie question on python programming

FromChris Williams <purplewelshy@googlemail.com>
Date2012-07-21 00:38 +0100
SubjectNewbie question on python programming
Message-ID<jucq6e$1ft8$1@adenine.netfront.net>
Hello

I hope this is the right newsgroup for this post.

I am just starting to learn python programming and it seems very 
straightforward so far. It seems, however, geared toward doing the sort 
of programming for terminal output.

Is it possible to write the sort of applications you can create in 
something like c-sharp or visual c++, or should I be looking at some 
other programming language? I am using ubuntu 12.04.

Thanks,

Chris.

--- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---

[toc] | [next] | [standalone]


#25707

FromIan Kelly <ian.g.kelly@gmail.com>
Date2012-07-20 18:30 -0600
Message-ID<mailman.2356.1342830657.4697.python-list@python.org>
In reply to#25705
On Fri, Jul 20, 2012 at 5:38 PM, Chris Williams
<purplewelshy@googlemail.com> wrote:
> Hello
>
> I hope this is the right newsgroup for this post.
>
> I am just starting to learn python programming and it seems very
> straightforward so far. It seems, however, geared toward doing the sort of
> programming for terminal output.
>
> Is it possible to write the sort of applications you can create in something
> like c-sharp or visual c++, or should I be looking at some other programming
> language? I am using ubuntu 12.04.

There are plenty of options for GUI programming in Python.  Among the
most popular are Tkinter, wxPython, PyGTK, and PyQT, all of which are
cross-platform and free.  Also, since you specifically mention the
.NET languages, IronPython runs on .NET and so is able to make full
use of the .NET APIs including Windows Forms and WPF.  A more
comprehensive list can be found at:

http://wiki.python.org/moin/GuiProgramming

[toc] | [prev] | [next] | [standalone]


#25749

FromTom P <werotizy@freent.dd>
Date2012-07-21 18:13 +0200
Message-ID<a702pbF2a7U1@mid.individual.net>
In reply to#25707
On 07/21/2012 02:30 AM, Ian Kelly wrote:
> On Fri, Jul 20, 2012 at 5:38 PM, Chris Williams
> <purplewelshy@googlemail.com> wrote:
>> Hello
>>
>> I hope this is the right newsgroup for this post.
>>
>> I am just starting to learn python programming and it seems very
>> straightforward so far. It seems, however, geared toward doing the sort of
>> programming for terminal output.
>>
>> Is it possible to write the sort of applications you can create in something
>> like c-sharp or visual c++, or should I be looking at some other programming
>> language? I am using ubuntu 12.04.
>
> There are plenty of options for GUI programming in Python.  Among the
> most popular are Tkinter, wxPython, PyGTK, and PyQT, all of which are
> cross-platform and free.  Also, since you specifically mention the
> .NET languages, IronPython runs on .NET and so is able to make full
> use of the .NET APIs including Windows Forms and WPF.  A more
> comprehensive list can be found at:
>
> http://wiki.python.org/moin/GuiProgramming
>

Another platform independent approach is to write the program as a web 
server something like this-
def application(environ, start_response):
     start_response("200 OK", [("Content-type", "text/plain")])
     return ["Hello World!"]

if __name__ == '__main__':
     from wsgiref.simple_server import make_server
     server = make_server('localhost', 8080, application)
     server.serve_forever()

Run this and then use your browser to connect to localhost:8080
You can then use html features such as forms for input/output.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web