Re: The usage of -m option of python

2013-03-19 Thread Steven D'Aprano
On Mon, 18 Mar 2013 16:17:27 -0500, Peng Yu wrote: > Hi, > > I don't quite understand how -m option is used. And it is difficult to > search for -m in google. Could anybody provide me with an example on how > to use this option? Thanks! > >-m module-name > Searches sys.path

Best way to find starting directory

2013-03-19 Thread Frank Millman
Hi all I want to locate a file relative to the directory from which the main program was launched. I have found two ways of finding the starting directory - 1. import os dir = os.getcwd() 2. import os.path import __main__ dir = os.path.dirname(__main__.__file__) I know that the first one wi

Re: Best way to find starting directory

2013-03-19 Thread Peter Otten
Frank Millman wrote: > I want to locate a file relative to the directory from which the main > program was launched. > > I have found two ways of finding the starting directory - > > 1. > import os > dir = os.getcwd() This gives the current working directory... > 2. > import os.path > import

Re: Best way to find starting directory

2013-03-19 Thread Frank Millman
On 19/03/2013 09:55, Peter Otten wrote: Frank Millman wrote: I want to locate a file relative to the directory from which the main program was launched. I have found two ways of finding the starting directory - 1. import os dir = os.getcwd() This gives the current working directory... 2.

Re: Writing Python framework for declarative checks?

2013-03-19 Thread Jean-Michel Pichavant
- Original Message - > HI, > > NB: I've posted this question on Reddit as well (but didn't get many > responses from Pythonistas) - hope it's ok if I post here as well. > > We currently use a collection of custom Python scripts to validate > various things in our production environment/co

Re: Writing Python framework for declarative checks?

2013-03-19 Thread rusi
On Mar 19, 1:38 am, Victor Hooi wrote: > We currently use a collection of custom Python scripts to validate various > things in our production environment/configuration. > > Many of these are simple XML checks (i.e. validate that the value of this XML > tag here equals the value in that file ove

Re: Problem this random seed()

2013-03-19 Thread NZach
@eli m : The problem is that i execute on lines 83 and 90 the main() and although the seed value is the same, equal to 12345, i receive different results from lines 85 and 92. @alex23: I changed the code, http://codeviewer.org/view/code:30d4, but i still receive have the same problem. The resul

Re: Problem this random seed()

2013-03-19 Thread NZach
@eli m : The problem is that i execute on lines 83 and 90 the main() and although the seed value is the same, equal to 12345, i receive different results from lines 85 and 92. @alex23: I changed the code, http://codeviewer.org/view/code:30d4, but i still receive have the same problem. The resul

Re: Problem this random seed()

2013-03-19 Thread Sven
On 19 March 2013 10:54, NZach wrote: > @eli m : The problem is that i execute on lines 83 and 90 the main() and > although the seed value is the same, equal to 12345, i receive different > results from lines 85 and 92. > > @alex23: I changed the code, http://codeviewer.org/view/code:30d4, but i >

Re: Problem this random seed()

2013-03-19 Thread NZach
Thank you @sven ! I thought that the time was reset automatically after calling the second main. Yes, i checked the values and they are the same. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to find starting directory

2013-03-19 Thread Dave Angel
On 03/19/2013 04:21 AM, Frank Millman wrote: On 19/03/2013 09:55, Peter Otten wrote: Frank Millman wrote: I want to locate a file relative to the directory from which the main program was launched. I have found two ways of finding the starting directory - 1. import os dir = os.getcwd() Thi

How to extract certain set of lines from PDF

2013-03-19 Thread adamnizar01
Hello, I need to extract certain set of lines from PDF Ex:- IF(..) .. .. IF(.) ... ... ENDIF ENDIF I need to copy entire lines from first "IF" till last "ENDIF".and extract it to seperate row of excel sheet.when ever a new occurrance of this k

Re: How to extract certain set of lines from PDF

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 9:16 AM, wrote: > Hello, > > I need to extract certain set of lines from PDF > Ex:- > IF(..) > .. > .. >IF(.) >... >... >ENDIF > ENDIF > > I need to copy entire lines from first "IF" till last "ENDIF".and extract > it

Re: Problem this random seed()

2013-03-19 Thread NZach
Sorry, my previous reply was completely wrong. The time is initialized through the initialize() to 0. So, each time i call main() the simulation time is initialized to 0. I changed the code in order to print and check the values of G.Rnd.expovariate(MachineClass.SrvRate) and G.Rnd.expovariate

How to send data from excel to website using python please help?

2013-03-19 Thread s . arun316
Hi, im new to python. Wanted to know how to extract data from excel sheet and send it to webpage form. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to extract certain set of lines from PDF

2013-03-19 Thread razinzamada
Thank you for your response,in case if its a word file how could i do this. On Tuesday, March 19, 2013 7:16:00 PM UTC+5:30, Joel Goldstick wrote: > On Tue, Mar 19, 2013 at 9:16 AM, wrote: > > Hello, > > > > I need to extract certain set of lines from PDF > > Ex:- > > IF(..) > > ..

Re: Excel column 256 limit

2013-03-19 Thread Neil Cerutti
On 2013-03-18, Ana Dion?sio wrote: > But I still get the error and I use Excel 2010. > > I'm trying to export data in a list to Excel xlrd: Library for developers to extract data from Microsoft Excel (tm). It is for *reading* Excel files, not writing them. To get data into Excel use the csv modu

Re: What am I doing wrong in this simple tkinter example?

2013-03-19 Thread Neil Cerutti
On 2013-03-16, Chris Angelico wrote: > On Sun, Mar 17, 2013 at 2:34 AM, Yves S. Garret > wrote: >> *facepalm* >> >> Yep, I see it :) . Thanks for your help. > > Glad to be of service. Welcome to a life of programming, where > the palm meets the face on a regular basis... more frequently > if you

Re: Problem this random seed()

2013-03-19 Thread Sven
On 19 March 2013 13:50, NZach wrote: > Sorry, my previous reply was completely wrong. The time is initialized > through the initialize() to 0. So, each time i call main() the simulation > time is initialized to 0. > > I changed the code in order to print and check the values of > > G.Rnd.expovari

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-19 Thread Wolfgang Keller
> As far as Dabo is concerned, at the moment I just have to know how to > spell "crash" ... Seems like someone is in desperate need of what they call "release management". X-( Sincerely, Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?

2013-03-19 Thread Wolfgang Keller
> >> Will look at Pypapi and SQLkit. > > > Did look: SQLkit needs Python 2. Personally I would be more concerned about the apparent end-of-life of PyGTK. > Pypapi, from the link you gave: "The new release of PyPaPi is written > in Java. You can find more info in the official site." On this > offi

Re: Problem this random seed()

2013-03-19 Thread Steven D'Aprano
On Tue, 19 Mar 2013 06:50:34 -0700, NZach wrote: > Sorry, my previous reply was completely wrong. The time is initialized > through the initialize() to 0. So, each time i call main() the > simulation time is initialized to 0. > > I changed the code in order to print and check the values of > > G

Re: Problem this random seed()

2013-03-19 Thread NZach
Probably a better code : http://codeviewer.org/view/code:30d9 I run the program once using comment in line 39 and then using comment in line 62. The results are not the same. The problem is with the Random. Although, i use seed value equal to 12345, i do not take the same results. :[ Any idea

Re: Best way to find starting directory

2013-03-19 Thread Frank Millman
On 19/03/2013 14:46, Dave Angel wrote: On 03/19/2013 04:21 AM, Frank Millman wrote: On 19/03/2013 09:55, Peter Otten wrote: Frank Millman wrote: I want to locate a file relative to the directory from which the main program was launched. I have found two ways of finding the starting directory

Re: Excel column 256 limit

2013-03-19 Thread Michael Ross
On Tue, 19 Mar 2013 15:07:54 +0100, Neil Cerutti wrote: On 2013-03-18, Ana Dion?sio wrote: But I still get the error and I use Excel 2010. I'm trying to export data in a list to Excel xlrd: Library for developers to extract data from Microsoft Excel (tm). It is for *reading* Excel files,

Need help in extracting lines from word using python

2013-03-19 Thread razinzamada
I'm currently trying to extract some data between 2 lines of an input file using Python. the infile is set up such that there is a line -START- where I need the next 10 lines of code if and only if the -END- condition occurs before the next -START-. The -START- line occurs many times before the

Re: How to send data from excel to website using python please help?

2013-03-19 Thread Neil Cerutti
On 2013-03-19, s.arun...@gmail.com wrote: > Hi, im new to python. Wanted to know how to extract data from > excel sheet and send it to webpage form. Thanks in advance. I like to export Excel documents as csv files and read them using the csv module's DictReader class. You can read from them dire

Re: Excel column 256 limit

2013-03-19 Thread Tim Chase
On 2013-03-19 14:07, Neil Cerutti wrote: > On 2013-03-18, Ana Dion?sio wrote: > > But I still get the error and I use Excel 2010. > > > > I'm trying to export data in a list to Excel > > xlrd: Library for developers to extract data from Microsoft Excel > (tm). > > It is for *reading* Excel files

Re: How to send data from excel to website using python please help?

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 10:22 AM, Neil Cerutti wrote: > On 2013-03-19, s.arun...@gmail.com wrote: > > Hi, im new to python. Wanted to know how to extract data from > > excel sheet and send it to webpage form. Thanks in advance. > > Can you be more clear about what you want to do with this data?

Re: Need help in extracting lines from word using python

2013-03-19 Thread Steven D'Aprano
On Tue, 19 Mar 2013 07:20:57 -0700, razinzamada wrote: > I'm currently trying to extract some data between 2 lines of an input > file using Python. the infile is set up such that there is a line > -START- where I need the next 10 lines of code if and only if the -END- > condition occurs before the

Re: Problem this random seed()

2013-03-19 Thread NZach
OK, i changed the code again. Delete the G class (The purpose of G class was to refer to global variables). Add Rnd.seed(12345) in main() function. The new code : http://codeviewer.org/view/code:30da i print the Rnd.expovariate(ArrivalClass.ArvRate). The output i get be executing the above code

Re: Need help in extracting lines from word using python

2013-03-19 Thread Dave Angel
On 03/19/2013 10:20 AM, razinzam...@gmail.com wrote: I'm currently trying to extract some data between 2 lines of an input file Your subject line says "from word". I'm only guessing that you might mean Microsoft Word, a proprietary program that does not, by default, save text files. The fol

Re: Best way to find starting directory

2013-03-19 Thread Dave Angel
On 03/19/2013 10:29 AM, Frank Millman wrote: On 19/03/2013 14:46, Dave Angel wrote: On 03/19/2013 04:21 AM, Frank Millman wrote: On 19/03/2013 09:55, Peter Otten wrote: Frank Millman wrote: I want to locate a file relative to the directory from which the main program was launched. I have fo

Re: Problem this random seed()

2013-03-19 Thread Steven D'Aprano
On Tue, 19 Mar 2013 07:44:47 -0700, NZach wrote: > OK, i changed the code again. Delete the G class (The purpose of G class > was to refer to global variables). Add Rnd.seed(12345) in main() > function. The new code : http://codeviewer.org/view/code:30da > > i print the Rnd.expovariate(ArrivalCla

Re: Problem this random seed()

2013-03-19 Thread Sven
On 19 March 2013 14:44, NZach wrote: > OK, i changed the code again. Delete the G class (The purpose of G class > was to refer to global variables). Add Rnd.seed(12345) in main() function. > The new code : http://codeviewer.org/view/code:30da > > i print the Rnd.expovariate(ArrivalClass.ArvRate).

"module could not be found" error

2013-03-19 Thread Robert Flintham
Hi, I'm trying to run the following, with representing an array of floating point numbers: import numpy as np import scipy as sp from scipy import optimize xdata= ydata= def t2fit(x,T2,A): return A * np.exp(-x/T2) popt, pcov =

Re: Problem this random seed()

2013-03-19 Thread Sven
On 19 March 2013 15:09, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 19 Mar 2013 07:44:47 -0700, NZach wrote: > > > OK, i changed the code again. Delete the G class (The purpose of G class > > was to refer to global variables). Add Rnd.seed(12345) in main() > > function

Re: "module could not be found" error

2013-03-19 Thread Dave Angel
On 03/19/2013 11:10 AM, Robert Flintham wrote: Hi, I'm trying to run the following, with representing an array of floating point numbers: import numpy as np import scipy as sp from scipy import optimize xdata= ydata= def t2fit(x,T

Re: Problem this random seed()

2013-03-19 Thread NZach
Τη Τρίτη, 19 Μαρτίου 2013 3:57:30 π.μ. UTC+2, ο χρήστης NZach έγραψε: > Hello everyone, > > > > i am using the MMK.py example from a SimPy tutorial, which can be found here: > http://heather.cs.ucdavis.edu/~matloff/156/PLN/DESimIntro.pdf > > > > I have made very little changes to the code an

Re: Excel column 256 limit

2013-03-19 Thread Rotwang
On 18/03/2013 15:50, Steven D'Aprano wrote: [...] Gnumeric is Linux-only No it isn't. I use it on Windows 7 with no problem. -- I have made a thing that superficially resembles music: http://soundcloud.com/eroneity/we-berated-our-own-crapiness -- http://mail.python.org/mailman/listinfo/pyth

Re: "module could not be found" error

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 11:10 AM, Robert Flintham < robert.flint...@uhb.nhs.uk> wrote: > Hi, > > ** ** > > I’m trying to run the following, with representing an array of > floating point numbers: > > ** ** > > > > import num

Re: Problem this random seed()

2013-03-19 Thread NZach
Τη Τρίτη, 19 Μαρτίου 2013 5:23:47 μ.μ. UTC+2, ο χρήστης NZach έγραψε: > Τη Τρίτη, 19 Μαρτίου 2013 3:57:30 π.μ. UTC+2, ο χρήστης NZach έγραψε: > > > Hello everyone, > > > > > > > > > > > > i am using the MMK.py example from a SimPy tutorial, which can be found > > here: http://heather.cs.uc

Replace "dash" values in a field with new line- VB equivalent of Python

2013-03-19 Thread Cathy James
Dear All, I need some assistance with Python so that values in the "Name" field e.g. Murray - James - Leo can be labeled as: Murray James Leo with a new line replacing every dash. Basically I need the equivalent of this VB in Python: replace ( [Name] , "-", vbNewLine) I tried this but no luck:

Wierd behavior of gc.collect

2013-03-19 Thread Bodhi
I have a python process that does some operations and is supposed to release memory after those. The issue is that memory is not released (as seen through top). So I do a gc.collect() to see if there is any cycle etc. Immediately after doing the collect memory usage drops as expected, but strang

Re: Replace "dash" values in a field with new line- VB equivalent of Python

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 11:36 AM, Cathy James wrote: > Dear All, > I need some assistance with Python so that values in the "Name" field e.g. > Murray - James - Leo can be labeled as: > > Murray > James > Leo > > with a new line replacing every dash. > > Basically I need the equivalent of this VB

Re: Replace "dash" values in a field with new line- VB equivalent of Python

2013-03-19 Thread Dave Angel
On 03/19/2013 11:36 AM, Cathy James wrote: Dear All, I need some assistance with Python so that values in the "Name" field e.g. Murray - James - Leo can be labeled as: Murray James Leo with a new line replacing every dash. Basically I need the equivalent of this VB in Python: replace ( [Name]

Re: Replace "dash" values in a field with new line- VB equivalent of Python

2013-03-19 Thread Neil Cerutti
On 2013-03-19, Cathy James wrote: > Dear All, > I need some assistance with Python so that values in the "Name" > field e.g. Murray - James - Leo can be labeled as: > > Murray > James > Leo > > with a new line replacing every dash. > > Basically I need the equivalent of this VB in Python: > replac

RE: "module could not be found" error

2013-03-19 Thread Robert Flintham
Joel: The 2.7 is the version number of the PyDev plugin for Eclipse, rather than the Python version number. Dave: I don't have access to the system's PATH environment variable because this computer is very tightly controlled. However, my user PATH environment contains "K:\Python33", which I ha

how to fetch data from excel and send it to website.

2013-03-19 Thread s . arun316
hi, im new to python. I need to know how data can be sent from excel to a webpage form. -- http://mail.python.org/mailman/listinfo/python-list

Re: Wierd behavior of gc.collect

2013-03-19 Thread Dave Angel
On 03/19/2013 11:47 AM, Bodhi wrote: I have a python process that does some operations and is supposed to release memory after those. The issue is that memory is not released (as seen through top). So I do a gc.collect() to see if there is any cycle etc. Immediately after doing the collect mem

Re: Replace "dash" values in a field with new line- VB equivalent of Python

2013-03-19 Thread rusi
On Mar 19, 8:36 pm, Cathy James wrote: > Dear All, > I need some assistance with Python so that values in the "Name" field e.g. > Murray - James - Leo can be labeled as: > > Murray > James > Leo > > with a new line replacing every dash. > > Basically I need the equivalent of this VB in Python: > r

Re: how to fetch data from excel and send it to website.

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 11:54 AM, wrote: > hi, im new to python. I need to know how data can be sent from excel to a > webpage form. > -- > http://mail.python.org/mailman/listinfo/python-list > This is the second or third time this question has been asked. All from different email addresses, b

Re: Wierd behavior of gc.collect

2013-03-19 Thread Bodhi
I know this, but my question is what does gc.collect do which results in the c library to free memory? Usually it is because of unreferenced objects in a cycle or something, but here that doesn't seem to be the case. On Tuesday, March 19, 2013 9:32:27 PM UTC+5:30, Dave Angel wrote: > On 03/19/20

Re: Wierd behavior of gc.collect

2013-03-19 Thread Dave Angel
On 03/19/2013 12:36 PM, Bodhi wrote: I know this, but my question is what does gc.collect do which results in the c library to free memory? Usually it is because of unreferenced objects in a cycle or something, but here that doesn't seem to be the case. As I said, python calls the C free() f

Python GUI questions

2013-03-19 Thread maiden129
Hello, I'm using python 3.2.3 and I'm making a program that show the of occurrences of the character in the string in Tkinter. My questions are: How can I make an empty Entry object that will hold a word that a user will enter? How to make an empty Entry object that will hold a single charact

Re: [Python-ideas] Message passing syntax for objects

2013-03-19 Thread Terry Reedy
On 3/18/2013 11:31 PM, Andrew Barnert wrote: The idea that message passing is fundamentally different from method calling also turned out to be one of those strange ideas, since it only took a couple years to prove that they are theoretically completely isomorphic—and, Since the isomorphism is

Re: Python GUI questions

2013-03-19 Thread Chris Angelico
On Wed, Mar 20, 2013 at 6:01 AM, maiden129 wrote: > Hello, > > I'm using python 3.2.3 and I'm making a program that show the of occurrences > of the character in the string in Tkinter. This sounds like homework. Have you had a try at it yourself before asking? If so, show us your code, and point

Re: Excel column 256 limit

2013-03-19 Thread Ian Kelly
On Tue, Mar 19, 2013 at 8:44 AM, Tim Chase wrote: > On 2013-03-19 14:07, Neil Cerutti wrote: >> On 2013-03-18, Ana Dion?sio wrote: >> > But I still get the error and I use Excel 2010. >> > >> > I'm trying to export data in a list to Excel >> >> xlrd: Library for developers to extract data from Mi

Re: Python GUI questions

2013-03-19 Thread maiden129
On Tuesday, March 19, 2013 5:39:51 PM UTC-4, Chris Angelico wrote: > On Wed, Mar 20, 2013 at 6:01 AM, maiden129 wrote: > > > Hello, > > > > > > I'm using python 3.2.3 and I'm making a program that show the of > > occurrences of the character in the string in Tkinter. > > > > This sounds like

CSV, lists, and functions

2013-03-19 Thread C.T.
Hello, Currently doing a project for class an I'm stuck. I have a csv file that I'm suppose to extract some information from. I've created a function that ignores the first six lines of the csv file and creates a list of values in a particular column. Here is the code: def get_values(file, in

Re: "Learn Python Quickly" is FREE today March 18th

2013-03-19 Thread John Rowland
On Monday, March 18, 2013 12:55:18 PM UTC, John Rowland wrote: > For just today, the book "Learn Python Quickly" is free to download from > Amazon. > > Also, go to www.learnpythonquickly.com for more information. To Terry Reedy. That's just the sort of constructive criticism I was hoping would

Re: CSV, lists, and functions

2013-03-19 Thread Roy Smith
In article <1d7fcebe-8677-42ec-a53d-284214296...@googlegroups.com>, "C.T." wrote: > Currently doing a project for class an I'm stuck. I have a csv file that I'm > suppose to extract some information from. I've created a function that > ignores the first six lines of the csv file and creates a

Help. HOW TO guide for PyQt installation

2013-03-19 Thread D. Xenakis
Hi there, Im searching for an installation guide for PyQt toolkit. To be honest im very confused about what steps should i follow for a complete and clean installation. Should i better choose to install the 32bit or the 64bit windows version? Or maybe both? Any chance one of them is more/less bu

Grouping on and exporting to csv files

2013-03-19 Thread accessnewbie
My current Test_Sort.csv looks like this (which constantly changes-although never more than 4 records, thus far anyway): RecNo,Count,District,Fruit,StoreNo 1,100,0,oranges,1254 2,30,3,apples,654 3,100,0,bananas,21 4,0,4,grapes,478 I wrote the following python 2.7 script (stuck with 2.7) ---

Re: Help. HOW TO guide for PyQt installation

2013-03-19 Thread Terry Reedy
On 3/19/2013 8:12 PM, D. Xenakis wrote: Hi there, Im searching for an installation guide for PyQt toolkit. To be honest im very confused about what steps should i follow for a complete and clean installation. Should i better choose to install the 32bit or the 64bit windows version? I am rather

Re: Python GUI questions

2013-03-19 Thread Rick Johnson
On Tuesday, March 19, 2013 2:01:24 PM UTC-5, maiden129 wrote: > Hello, > > I'm using python 3.2.3 and I'm making a program that show > the of occurrences of the character in the string in > Tkinter. > > My questions are: > > How can I make an empty Entry object that will hold a word > that a use

Re: CSV, lists, and functions

2013-03-19 Thread Dave Angel
On 03/19/2013 06:59 PM, C.T. wrote: Hello, Currently doing a project for class an I'm stuck. I have a csv file that I'm suppose to extract some information from. I've created a function that ignores the first six lines of the csv file and creates a list of values in a particular column. Here

Re: Python GUI questions

2013-03-19 Thread maiden129
On Tuesday, March 19, 2013 8:57:42 PM UTC-4, Rick Johnson wrote: > On Tuesday, March 19, 2013 2:01:24 PM UTC-5, maiden129 wrote: > > > Hello, > > > > > > I'm using python 3.2.3 and I'm making a program that show > > > the of occurrences of the character in the string in > > > Tkinter. > > >

Re: CSV, lists, and functions

2013-03-19 Thread Roy Smith
In article , Dave Angel wrote: > But you should switch to using the csv module. And unless you have data > that consists of millions of lines, you should just read the whole thing > in once, and then extract the various columns by simple list > manipulations and/or comprehensions. Another p

Are there any Python libraries/frameworks which generate AngularJS?

2013-03-19 Thread Alec Taylor
I find the stateless SOA architecture to be increasingly useful and relevant. For example, it allows you to write once; deploy to: - Website (for viewing in web browsers) - Native mobile apps (using Adobe PhoneGap or similar) - Ubuntu apps - Windows Metro Store apps (for Windows 8)

Re: "module could not be found" error

2013-03-19 Thread Steven D'Aprano
On Tue, 19 Mar 2013 15:58:51 +, Robert Flintham wrote: > Joel: The 2.7 is the version number of the PyDev plugin for Eclipse, > rather than the Python version number. > > Dave: I don't have access to the system's PATH environment variable > because this computer is very tightly controlled. H

Re: Python GUI questions

2013-03-19 Thread Jason Swails
On Tue, Mar 19, 2013 at 9:25 PM, maiden129 wrote: > On Tuesday, March 19, 2013 8:57:42 PM UTC-4, Rick Johnson wrote: > > On Tuesday, March 19, 2013 2:01:24 PM UTC-5, maiden129 wrote: > > > > > Hello, > > > > > > > > > > I'm using python 3.2.3 and I'm making a program that show > > > > > the of occ

Re: Python GUI questions

2013-03-19 Thread Ranting Rick
On Mar 19, 8:25 pm, maiden129 wrote: > Here is my try to answer some of questions: > > [snip code] I don't understand why you are wrapping this code into a class. Are you trying to create something reuseable? > I'm just struggling with only how to create an object that > will hold a single chara

Re: Python GUI questions

2013-03-19 Thread maiden129
On Tuesday, March 19, 2013 10:16:25 PM UTC-4, Rick Johnson wrote: > On Mar 19, 8:25 pm, maiden129 wrote: So should I redo my other code that I created with the radioButtons to change the colors of a text? from tkinter import * class buttons: def __init__(self): window = Tk()

Re: Python GUI questions

2013-03-19 Thread Rick Johnson
On Tuesday, March 19, 2013 9:36:28 PM UTC-5, maiden129 wrote: > So should I redo my other code that I created with > the radioButtons to change the colors of a text? I believe so. Although you really should explain what your trying to achieve with this code. There is nothing wrong with wrapping

Re: Python GUI questions

2013-03-19 Thread Terry Reedy
On 3/19/2013 10:16 PM, Ranting Rick wrote: import tkinter as tk from tkinter.constants import LEFT def cbButton(self): print('I should do something here!') root = tk.Tk() root.title("Window") w=tk.Label(root, text="Enter a string") w.pack(side=LEFT) e1 = tk.Entry(root, bd=5) e1.pack(side=L

Re: [Python-ideas] Message passing syntax for objects

2013-03-19 Thread Mark Janssen
On Tue, Mar 19, 2013 at 1:09 PM, Terry Reedy wrote: > On 3/18/2013 11:31 PM, Andrew Barnert wrote: > >> The idea that message passing is fundamentally different from method >> calling also turned out to be one of those strange ideas, since it >> only took a couple years to prove that they are theo

OOPv2: [Was: Message passing syntax for objects]

2013-03-19 Thread Mark Janssen
Hopefully this won't be considered mail spam, but another quora answer that gets to the idea I'm after: http://qr.ae/TMh7A Reposted here for those who don't have accounts: Q. Is it time for us to dump the OOP paradigm? If yes, what can replace it? When I was using C++ and Java, more of my time

Re: Wierd behavior of gc.collect

2013-03-19 Thread Bodhi
Thanks for the info. I now suspect that the free lists are taking up the memory which won't be released unless we do a collect. I'm verifying that. On Tuesday, March 19, 2013 10:43:11 PM UTC+5:30, Dave Angel wrote: > On 03/19/2013 12:36 PM, Bodhi wrote: > > > I know this, but my question is what

Re: OOPv2: [Was: Message passing syntax for objects]

2013-03-19 Thread Chris Rebert
On Tue, Mar 19, 2013 at 9:46 PM, Mark Janssen wrote: > Hopefully this won't be considered mail spam, but another quora answer that > gets to the idea I'm after: http://qr.ae/TMh7A > > Reposted here for those who don't have accounts: > > Q. Is it time for us to dump the OOP paradigm? If yes, what

Re: Best way to find starting directory

2013-03-19 Thread Frank Millman
On 19/03/2013 17:03, Dave Angel wrote: On 03/19/2013 10:29 AM, Frank Millman wrote: On 19/03/2013 14:46, Dave Angel wrote: As you say, there is a variety of types of data that one might to store externally. My current scenario is that, in my business/accounting application, I use xml to store f

Re: Need help in extracting lines from word using python

2013-03-19 Thread razinzamada
Thanks steven On Tuesday, March 19, 2013 8:11:22 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 19 Mar 2013 07:20:57 -0700, razinzamada wrote: > > > > > I'm currently trying to extract some data between 2 lines of an input > > > file using Python. the infile is set up such that there is a line

Re: Need help in extracting lines from word using python

2013-03-19 Thread razinzamada
Thanks DAVE On Tuesday, March 19, 2013 8:24:24 PM UTC+5:30, Dave Angel wrote: > On 03/19/2013 10:20 AM, razinzam...@gmail.com wrote: > > > I'm currently trying to extract some data between 2 lines of an input file > > > > Your subject line says "from word". I'm only guessing that you might >

Re: Help. HOW TO guide for PyQt installation

2013-03-19 Thread D. Xenakis
Τη Τετάρτη, 20 Μαρτίου 2013 2:55:22 π.μ. UTC+2, ο χρήστης Terry Reedy έγραψε: > On 3/19/2013 8:12 PM, D. Xenakis wrote: > > > Hi there, Im searching for an installation guide for PyQt toolkit. To > > > be honest im very confused about what steps should i follow for a > > > complete and clean ins