[Tutor] Can a method be added to dictionary?

2009-11-19 Thread lauren
d in doing this with a Combobx Event. When the user selects an option in my dropdown box (event.GetString()) that matches the string in my dictionary...say "string2" then the method: processString2(parameter) is executed. Currently when I get the value of: myDictionary[string2] i

Re: [Tutor] Can a method be added to dictionary?

2009-11-19 Thread lauren
John, Thank you so much for your help! -- Problem SOLVED!!! -- Your explanation and example was extremely helpful. I am very grateful. Lauren :-) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

[Tutor] Finding all locations of a sequence

2007-06-14 Thread Lauren
Ok, please bear with me, I'm very new to programming and python. And my question is rather...convoluted. I have a bunch of sequences (about 4100 or so), and want to know where they are in a very, very large string of letters. But wait, there's more. Some of these sequences match to more than 'word

Re: [Tutor] Finding all locations of a sequence

2007-06-14 Thread Lauren
erhaps others will have a much more sophisticated way > of doing this same problem. I'm still not exactly sure what it is you are > looking for, because there isn't enough information for me to really get a > grasp on your problem. My response is a simple list structure that has

Re: [Tutor] Finding all locations of a sequence

2007-06-27 Thread Lauren
], 'AAC': [[0]]} but what I want is 'AAU':[0, 1], 'AAG':[2, 3, 5], 'AAA':[3. 5], 'AAC':[0] the setdefault(key, []).append(location) thing sort of does what I want, but I don't want the result to be a list of lists...just one big list. The productio

[Tutor] Automating the windows GUI for testing purposes

2008-03-07 Thread lauren
type of work? Thank you in advance, Lauren ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tree Ctrl Data Structure - Help, please!

2008-07-16 Thread lauren
australia", ["europe",["spain", "germany", "belgium"]]] <-- Correct (I believe) NOT THIS... geo = ["australia", "europe", ["spain", "germany", "belgium"]] <-- Incorrect (I believe) *** I need assistance getting from here: continent = ["australia", "europe", "america", "asia"] country = [["spain", "germany", "belgium"], ["united states", "canada"]] state = ["california", "oregon", "arizona"] To here: geo=[ "australia", ["europe", ["spain", "germany", "belgium",]], ["north america", ["united states",[ "california", "oregon", "arizona"], "canada"]], "asia"] Thanks Again! Lauren ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tree Ctrl Data Structure - Help, please!

2008-07-16 Thread lauren
[]), (belgium",[])]), ("north america", [("united states",[ ("california",[]), ("oregon",[]), ("arizona",[]) ]) ]), ("canada", []), (&quo

Re: [Tutor] Tree Ctrl Data Structure - Help, please!

2008-07-16 Thread lauren
,[ ("california", []), ("oregon", []), ("arizona", [])]), ("canada", [ ("Ontario", [])])]), ("asia", [ ("japan", [])]) Lauren > From looking at your o

[Tutor] How to reference a wx.grid.Grid outside the method inwhich it was created?

2008-08-11 Thread lauren
id' is not defined." It's an error against this statement in method #2: myGrid.SetCellValue(i, 0, myValue) Thanks! Lauren ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to reference a wx.grid.Grid outside the method inwhich it was created?

2008-08-11 Thread lauren
It worked like a charm! Thank you so much!! Lauren > If method1 and method2 are both methods of the same class, just save > myGrid as an attribute of the class rather than having it as a local > variable in method1. I.e. > > def method1(self): > self.myGrid = ... &g

[Tutor] Distributing MySQL with my application

2009-03-21 Thread Lauren Snyder
I have to make "Users must have MySQL server running" as a pre-requisite for using my software? 4. Did I miss an option in GUI2exe that allows me to set up my exe to use MySQL? Thank you, Lauren ___ Tutor maillist - Tutor@python.org ht

Re: [Tutor] Distributing MySQL with my application

2009-03-23 Thread Lauren Snyder
like the idea of writing a script to check to see if MySQL is installed. However, I need pointers on writing this script and also the script to auto install MySQL on another user's computer. Thank you again for your help and brilliant ideas! Lauren -Original Message- From: andré p

[Tutor] Tree Ctrl Data Structure - Help, please!

2008-07-15 Thread Lauren Snyder
Node1d Node2c Node3a Node1d Node2d ** So - my questions: Is there an existing method/class/library that already exists in python to help me create the data structure I need for my tree structure? If

Re: [Tutor] How to reference a wx.grid.Grid outside the methodinwhich it was created?

2008-08-11 Thread Lauren Snyder
Will do! Thanks again, Lauren :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld Sent: Monday, August 11, 2008 4:27 PM To: tutor@python.org Subject: Re: [Tutor] How to reference a wx.grid.Grid outside the methodinwhich it was created