Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Newbie question on python programming (http://www.velocityreviews.com/forums/t948325-re-newbie-question-on-python-programming.html)

Ian Kelly 07-21-2012 12:30 AM

Re: Newbie question on python programming
 
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

Tom P 07-21-2012 04:13 PM

Re: Newbie question on python programming
 
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.



All times are GMT. The time now is 06:39 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57