[Tutor] How to extract variables from GUI objects

2015-08-19 Thread Eric Kelly
I am a beginner with Python and would like to write a program that includes a GUI to run it. I've been through a tutorial on using Python but I'm trying to also use Gtk and Glade to make the GUI. I've tried to use the docs and other tutorials but alas I'm still stuck. The problem is simply to ge

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Mike C. Fletcher
On 15-08-18 04:10 PM, Albert-Jan Roskam wrote: Hi, I use Python(x y) (Python 2.7) on Win7. I need a higher version of openpyxl, because pandas.Dataframe.to_excel yields an error. So pandas and its own dependencies (e.g. numpy) could remain in the python(x y) site-packages, I just need a hig

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Alex Kleider
On 2015-08-18 19:32, Mike C. Fletcher wrote: To install without going out to the internet, you can use these arguments: pip install --no-index --find-links=/path/to/download/directory For this to work, /path/to/download/directory would, I assume, first have to be populated. I further

Re: [Tutor] How to extract variables from GUI objects

2015-08-19 Thread Timo
Op 19-08-15 om 01:08 schreef Eric Kelly: I am a beginner with Python and would like to write a program that includes a GUI to run it. I've been through a tutorial on using Python but I'm trying to also use Gtk and Glade to make the GUI. I've tried to use the docs and other tutorials but alas I'

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Albert-Jan Roskam
> Date: Wed, 19 Aug 2015 02:27:41 -0700 > From: aklei...@sonic.net > To: tutor@python.org > Subject: Re: [Tutor] pip install in a virtualenv *without* internet? > > On 2015-08-18 19:32, Mike C. Fletcher wrote: > > > To install without going out to the internet, you can use these > > arguments: >

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Albert-Jan Roskam
Sorry, now with Reply All From: sjeik_ap...@hotmail.com To: mcfle...@vrplumber.com Subject: RE: [Tutor] pip install in a virtualenv *without* internet? Date: Wed, 19 Aug 2015 11:25:49 + > Date: Tue, 18 Aug 2015 22:32:28 -0400 > From: mcfle...@vrplumber.com > To: tutor@python.org > Subject:

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Alex Kleider
On 2015-08-19 04:28, Albert-Jan Roskam wrote: Date: Wed, 19 Aug 2015 02:27:41 -0700 From: aklei...@sonic.net To: tutor@python.org Subject: Re: [Tutor] pip install in a virtualenv *without* internet? On 2015-08-18 19:32, Mike C. Fletcher wrote: > To install without going out to the internet, you

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Marc Tompkins
On Wed, Aug 19, 2015 at 9:18 AM, Alex Kleider wrote: > I guess if you 'never' have an internet connection what I'm trying to do > won't work, > but I'm addressing a different use case: I have connectivity in some > environments > but would like to be able to do a pip install at times when there

[Tutor] About using list in a function

2015-08-19 Thread Michelle Meiduo Wu
Hi there, I'm trying to use List in a function. But it doesn't work. Here are sample code not work: ---def getResult():ls = [] ls= ls.append(100)ls= ls.append(200) return ls reList = []reList = getResult()lsLength = len(reList)print '\n The leng

Re: [Tutor] About using list in a function

2015-08-19 Thread Steven D'Aprano
Hi Michaelle, and welcome. On Wed, Aug 19, 2015 at 12:09:15PM -0400, Michelle Meiduo Wu wrote: > Hi there, I'm trying to use List in a function. But it doesn't work. > Here are sample code not work: > --- > def getResult(): > ls = [] > ls = ls.appe

Re: [Tutor] About using list in a function

2015-08-19 Thread Steven D'Aprano
On Thu, Aug 20, 2015 at 03:05:53AM +1000, Steven D'Aprano wrote: > Hi Michaelle, and welcome. Oops, sorry for the typo, I meant Michelle. -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.pyth

Re: [Tutor] About using list in a function

2015-08-19 Thread Alan Gauld
On 19/08/15 17:09, Michelle Meiduo Wu wrote: Hi there, I'm trying to use List in a function. But it doesn't work. Here are sample code not work: ---def getResult():ls = [] ls= ls.append(100)ls= ls.append(200) return ls reList = []reList = getR

[Tutor] OT: Searching Tutor Archives

2015-08-19 Thread Ken G.
While searching in Google several months ago, I came across a response addressed to me regarding on how to read, correct and write to the same file at the same time without using a secondary file as a temporary file to hold the corrected entries and rewriting to the original file. The entry wa

Re: [Tutor] About using list in a function

2015-08-19 Thread Laura Creighton
In a message of Wed, 19 Aug 2015 18:25:56 +0100, Alan Gauld writes: >On 19/08/15 17:09, Michelle Meiduo Wu wrote: >> Hi there, >> I'm trying to use List in a function. But it doesn't work. Here are sample >> code not work: ---def getResult():ls >> = []l

Re: [Tutor] About using list in a function

2015-08-19 Thread Laura Creighton
Scrambled in the archives, too https://mail.python.org/pipermail/tutor/2015-August/106528.html And looks like something thought it would be best as only one line of text. Laura ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] About using list in a function

2015-08-19 Thread Marc Tompkins
On Wed, Aug 19, 2015 at 10:25 AM, Alan Gauld wrote: > On 19/08/15 17:09, Michelle Meiduo Wu wrote: > >> Hi there, >> I'm trying to use List in a function. But it doesn't work. Here are >> sample code not work: ---def >> getResult():ls = []ls= ls.append(

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Albert-Jan Roskam
> Date: Wed, 19 Aug 2015 09:49:43 -0700 > From: marc.tompk...@gmail.com > To: tutor@python.org > Subject: Re: [Tutor] pip install in a virtualenv *without* internet? > > On Wed, Aug 19, 2015 at 9:18 AM, Alex Kleider wrote: > > > I guess if you 'never' have an internet connection what I'm trying

Re: [Tutor] About using list in a function

2015-08-19 Thread Emile van Sebille
On 8/19/2015 11:20 AM, Marc Tompkins wrote: (Every couple of weeks, despite my repeated attempts to stop TBird from auto-updating, I find that they've got a new version and can't connect. Fortunately Mozilla hasn't changed their DB format, so I can just re-install 33.) Anyway, I know why _they_

Re: [Tutor] About using list in a function

2015-08-19 Thread Marc Tompkins
On Wed, Aug 19, 2015 at 11:36 AM, Emile van Sebille wrote: > On 8/19/2015 11:20 AM, Marc Tompkins wrote: > >> (Every couple of weeks, despite my repeated >> attempts to stop TBird from auto-updating, I find that they've got a new >> version and can't connect. Fortunately Mozilla hasn't changed t

Re: [Tutor] OT: Searching Tutor Archives

2015-08-19 Thread Ben Finney
"Ken G." writes: > Could someone explain how to found such an article At the end of every message to this forum you'll see this footer: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.

Re: [Tutor] OT: Searching Tutor Archives

2015-08-19 Thread Ken G.
On 08/19/2015 06:09 PM, Ben Finney wrote: "Ken G." writes: Could someone explain how to found such an article At the end of every message to this forum you'll see this footer: ___ Tutor maillist - Tutor@python.org To unsubscribe or change subs

Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Mike C. Fletcher
On 15-08-19 05:27 AM, Alex Kleider wrote: On 2015-08-18 19:32, Mike C. Fletcher wrote: To install without going out to the internet, you can use these arguments: pip install --no-index --find-links=/path/to/download/directory For this to work, /path/to/download/directory would, I ass

Re: [Tutor] Binary tree expressions

2015-08-19 Thread Quiles, Stephanie
Yes I got the exact same thing. I figured it out once I sent the email. It is easier to start the tree from the bottom and work your way up than the way I was doing it which was from the top down. Thanks for your reply Alex, it was still helpful to get someone else's interpretation Stephanie

Re: [Tutor] OT: Searching Tutor Archives

2015-08-19 Thread Alan Gauld
On 19/08/15 18:43, Ken G. wrote: explain how to found such an article or kindly refresh my memory on how to correct an original file without using a secondary file. Thanks. Others have explained the search. Let me just point out that the number of cases where you want to do such a thing is van

Re: [Tutor] About using list in a function

2015-08-19 Thread Alan Gauld
On 19/08/15 18:25, Alan Gauld wrote: On 19/08/15 17:09, Michelle Meiduo Wu wrote: Hi there, I'm trying to use List in a function. But it doesn't work. Here are sample code not work: ---def As you can (hopefully!) see above, this message is completely scramb

Re: [Tutor] OT: Searching Tutor Archives

2015-08-19 Thread Ken G.
On 08/19/2015 07:34 PM, Alan Gauld wrote: On 19/08/15 18:43, Ken G. wrote: explain how to found such an article or kindly refresh my memory on how to correct an original file without using a secondary file. Thanks. Others have explained the search. Let me just point out that the number of c

Re: [Tutor] About using list in a function

2015-08-19 Thread Laura Creighton
In a message of Thu, 20 Aug 2015 00:37:17 +0100, Alan Gauld writes: >On 19/08/15 18:25, Alan Gauld wrote: >> On 19/08/15 17:09, Michelle Meiduo Wu wrote: >>> Hi there, >>> I'm trying to use List in a function. But it doesn't work. Here are >>> sample code not work: -

[Tutor] Complications Take Two (Long) Frustrations.

2015-08-19 Thread Joseph Gulizia
Complicating a simple expression Coding Exercise: Complication Assume that the grader defines two variables A and B for you. Write a program which prints out the value min(A, B) However, there is a catch: your program is not allowed to use the min function. Instead, use max in a clever way to si

[Tutor] Test discovery not locating module to test

2015-08-19 Thread boB Stepp
W7 64-bit. Py 3.4.3 unittest result: E:\Projects\mcm>python -m unittest E == ERROR: test.db.test_mcm_db_mgr (unittest.loader.ModuleImportFailure) -- Traceback (

[Tutor] Complications (Long) and Complicatiing Simple both Solved....

2015-08-19 Thread Joseph Gulizia
Original = -1 * max(-A, -B) print (Original) or max = -max(-A,-B) print(max) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor