[Tutor] Automatic updates for a program?

2011-05-12 Thread Lan Rogers
So I have a program I want to release, but it's still in early stages without some of its planned functionality. I want to distribute automatic updates. I'm working under the assumption that the easiest way to do this is to just replace the old files with the new ones. My questions is this: How do

[Tutor] Tkinter progress bar not responding when moved

2011-05-12 Thread tax botsis
I am trying to use a progress bar for my application and used the following code by Michael Lange ( http://tkinter.unpythonic.net/wiki/ProgressMeter?action=PackagePages). However, the progress bar stops responding when I move it. I haven't modified class declaration and _demo but created my own mod

Re: [Tutor] What is the trick ???!

2011-05-12 Thread Karim
On 05/12/11 21:24, Karim wrote: Hello See below, I was surprised about finding hidden function in module sys: karim@Requiem4Dream: python2.7 Python 2.7.1rc1 (r271rc1:86455, Nov 16 2010, 21:53:40) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> i

[Tutor] What is the trick ???!

2011-05-12 Thread Karim
Hello See below, I was surprised about finding hidden function in module sys: karim@Requiem4Dream: python2.7 Python 2.7.1rc1 (r271rc1:86455, Nov 16 2010, 21:53:40) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.getdefaultencod

Re: [Tutor] cpython

2011-05-12 Thread Alan Gauld
"tee chwee liong" wrote thanks for your advice. let me check it out. If you mean cython I wouldn't bother. Since you are "just starting" in Python reading about cython is more likely to confuse you than help. Cython is great once you really know python (and at least a little C) but I do

Re: [Tutor] ImportError: Module use of python25.dll conflicts with this version of Python.

2011-05-12 Thread Alan Gauld
"Susana Iraiis Delgado Rodriguez" wrote from _mapnik import * ImportError: Module use of python25.dll conflicts with this version of Python. I'm using Python 2.6 You will need to find a Python 2.6 version of the DLL or revert your Python version to 2.5. This is always a risk when usi

Re: [Tutor] Just Joined!

2011-05-12 Thread Alan Gauld
"Alex Smith" wrote SwapcaseAndCenter('hello', 10) I don't understand how from your example you get an output ...I get the below error: NameError: name 'SwapcaseAndCenter' is not defined Wayne was showing how it should work. As Python says the function is not defined yet. Defining the f

Re: [Tutor] create an xls file using data from a txt file

2011-05-12 Thread Steve Willoughby
Maybe we're splitting hairs over semantics then. I thought there was confusion about what the CLI shell was doing with file separators as opposed to just handing the arguments as-is to the applications (which is true... the CLI doesn't really process them much, it's up to the application. Whe

[Tutor] ImportError: Module use of python25.dll conflicts with this version of Python.

2011-05-12 Thread Susana Iraiis Delgado Rodriguez
Hello list! I just started working with a dll fro geospatial data, it uses Python to analyze data, this package is OSGeo4W; when I run the script and got the next error: >>> import mapnik Traceback (most recent call last): File "", line 1, in File "C:\OSGeo4W\apps\Python25\lib\site-packages\m

Re: [Tutor] cpython

2011-05-12 Thread Chris Fuller
CPython refers to the main implementation, which is written in C. There are a bunch of different implementations, such as IronPython for .NET or Jython for the Java Virtual Machine. There's also Cython (subtle spelling difference), which you can use to combine C and Python code. It isn't quit

Re: [Tutor] create an xls file using data from a txt file

2011-05-12 Thread Prasad, Ramit
>Respectfully, I think you aren't clear on how command line execution >works. Hopefully I can help a little (yes, there are enough cases where >it'll bite you that it's good to know this). True >If Windows natively supported it, then you could do this: >C:\> DIR /users/fred/desktop >C:\> DEL /

Re: [Tutor] cpython

2011-05-12 Thread tee chwee liong
thanks for your advice. let me check it out. Date: Thu, 12 May 2011 15:18:40 +0200 Subject: Re: [Tutor] cpython From: izzaddin.ruhules...@gmail.com To: tc...@hotmail.com CC: tutor@python.org Hi, CPython is the C implementation of Python. You can read the tutorial in the Python docs. It

Re: [Tutor] cpython

2011-05-12 Thread Izz ad-Din Ruhulessin
Hi, CPython is the C implementation of Python. You can read the tutorial in the Python docs. It is a rather advanced topic, however. If you nevertheless want to delve into it, it might be a good idea to check out www.cython.org first. 2011/5/12 tee chwee liong > hi all, > > i just started pyt

Re: [Tutor] cpython

2011-05-12 Thread Tim Golden
On 12/05/2011 14:10, tee chwee liong wrote: hi all, i just started python but i'm hearing there is cpython. what is it different from python? is there any tutorials i can refer. CPython is just the most common version of Python, so-called because it's written in C: the one you download from py

[Tutor] cpython

2011-05-12 Thread tee chwee liong
hi all, i just started python but i'm hearing there is cpython. what is it different from python? is there any tutorials i can refer. thanks tcl ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Just Joined!

2011-05-12 Thread Alex Smith
Thank you both for the quick replies! So I understand now dir is just used to assist in finding relevant strings. wapcaseAndCenter('hello', 10) I don't understand how from your example you get an output from : SwapcaseAndCenter('hello', 10) I get the below error: Traceback (most recent call las

Re: [Tutor] Just Joined!

2011-05-12 Thread Wayne Werner
On Thu, May 12, 2011 at 6:34 AM, Alex Smith wrote: > Hi All, > > I just joined this list and am really new to python. > Hi! Welcome to the Python tutor list, and Python! > I have an assignment to create a function with (a_string, width) which > returns the a_string with all the lower case char

Re: [Tutor] Just Joined!

2011-05-12 Thread Walter Prins
On 12 May 2011 12:34, Alex Smith wrote: > Hi All, > > I just joined this list and am really new to python. I have an assignment > to create a function with (a_string, width) which returns the a_string with > all the lower case characters changed to upper case characters and vice > versa and cente

[Tutor] Just Joined!

2011-05-12 Thread Alex Smith
Hi All, I just joined this list and am really new to python. I have an assignment to create a function with (a_string, width) which returns the a_string with all the lower case characters changed to upper case characters and vice versa and centered; was wondering if someone could point me in th

Re: [Tutor] create an xls file using data from a txt file

2011-05-12 Thread Tim Golden
To confirm: Python does *nothing* to convert automatically from one form of path separator to another. Windows from very early on, has accepted /-slashes as path separators to API calls. Where they don't work is: at the command shell itself presumably since slashes are commonly used to introduce o

Re: [Tutor] create an xls file using data from a txt file

2011-05-12 Thread Peter Otten
Steve Willoughby wrote: > On 11-May-11 15:54, Prasad, Ramit wrote: >>> Core windows commands don't generally accept it, including native >>> Windows applications (although sometimes they're lenient in what they >>> accept). It'll work for command-line Python script usage because it's >>> *python*