There is nothing called franeButton it should be frameButton. I guess its a
typo.
On 3 Nov 2011 05:52, "Chris Hare" wrote:
>
> I have the following code:
>
>def listUsers(self):
>self.frameBottom = Frame(self.base, bd=0, bg=backColor)
>self.frameBottom.gri
I'm currently taking a class on Android Development.
The instructor says that the code needed has to be done through Java.
Isn't there any way to create these same apps with Python?
I read on the Android Dev site that MonkeyRunner can assist but does
anyone else have any experience on how well this
I have the following code:
def listUsers(self):
self.frameBottom = Frame(self.base, bd=0, bg=backColor)
self.frameBottom.grid(row=1, column=0,sticky=N+E+S+W)
self.text = Text(self.frameBottom)
self.text.grid(row=1, column=6,
I have a Listbox defined
self.list = Listbox(self.frame)
What I want to do is when the user either single clicks, double clicks, presses
tab or return, move the focus to the specified field
self.list.bind("", self.login_userid.focus_set())
self.list.bind("",
se
I'm sorry, I misspoke (well, mistyped anyway). I have a couple
class-level variables, but most of them are set in the __init__ so
that every instance gets a fresh copy of them. Thatnks for the
responses.
On 11/2/11, Steven D'Aprano wrote:
> On Thu, 3 Nov 2011 12:57:25 am Alex Hall wrote:
>> Thank
On Wed, 2 Nov 2011 11:54:17 am Alan Gauld wrote:
> On 01/11/11 21:15, Joel Montes de Oca wrote:
> > Question, once the code is compiled to a binary, can someone
> > inject code to cause the hidden window to show, skipping the
> > login altogether?
>
> In general you don't compile Python to a binary
On Thu, 3 Nov 2011 02:02:31 am spa...@gmail.com wrote:
> I use OS X / Windows and I have not noticed any dependency issues.
> So I was not aware about the same with respect to Ubuntu. I am glad
> that I learnt something from this discussion.
In general, you should never uninstall any package you d
On Thu, 3 Nov 2011 12:57:25 am Alex Hall wrote:
> Thanks to both of you, that will work. I can see the argument for
> assigning everything manually, but I have each parameter on its own
> line with a comment to explain what it does, and I know I want all
> parameters to be class-level for every ins
On Wed, Nov 2, 2011 at 11:39 AM, Prasad, Ramit wrote:
> >I use OS X / Windows and I have not noticed any dependency issues. So I
> was not aware about the same with respect to Ubuntu. I am glad that I
> learnt something from this discussion.
>
> I might be wrong, but Ubuntu itself is not dependent
On 02/11/11 16:58, Dave Angel wrote:
sorted(results)
['10B', '1A', '2C', '3D']
as [ '1A', '2C', '3D','10B']
Essence of the answer is you can supply a key=myfunc argument to
sorted(). Then it's up to you what you put in that function. It sounds
like you want to convert any leading digits to
Alex Hall wrote:
Hi all,
I have a class which takes a large number of optional arguments for
its __init__. Instead of going through every single one and assigning
it to "self.[name]", is there some quick way to take all the
parameters of the constructor and assign them all to self.[name] in
one s
Chris Hare wrote:
I would like to put each of my classes in separate files to make it
easier to edit them and keep the various files as small as possible
for editing purposes.
Perhaps you need a better editor, one with a class browser that lets you
see the layout of your classes and the relati
On 11/02/2011 11:54 AM, lina wrote:
Regard the sorted(),
I still have a question,
how to sort something like
results
['1A', '10B', '2C', '3D']
sorted(results)
['10B', '1A', '2C', '3D']
as [ '1A', '2C', '3D','10B']
Thanks,
mainly based on their digital value.
Peter answered essential
>I use OS X / Windows and I have not noticed any dependency issues. So I was
>not aware about the same with respect to Ubuntu. I am glad that I learnt
>something from this discussion.
I might be wrong, but Ubuntu itself is not dependent on Python. You can
probably run a minimalist headless Ubun
Regard the sorted(),
I still have a question,
how to sort something like
>>> results
['1A', '10B', '2C', '3D']
>>> sorted(results)
['10B', '1A', '2C', '3D']
as [ '1A', '2C', '3D','10B']
Thanks,
mainly based on their digital value.
___
Tutor maill
On Tue, Nov 1, 2011 at 11:56 PM, Dave Angel wrote:
> On 11/01/2011 11:11 AM, lina wrote:
>>
>> On Tue, Nov 1, 2011 at 10:33 PM, Dave Angel wrote:
>>>
>>> On 11/01/2011 10:11 AM, lina wrote:
Hi,
The following code (luckily) partial achieved what I wanted, but I
still have
I use OS X / Windows and I have not noticed any dependency issues. So I was
not aware about the same with respect to Ubuntu. I am glad that I learnt
something from this discussion.
Regards,
Sumod
On Wed, Nov 2, 2011 at 7:40 PM, Joel Montes de Oca
wrote:
> On 11/02/2011 02:26 AM, spa...@gmail.com
Just thought I would drop y'all a note and say thank you for your help on this.
I have the login code working.
I learned a bunch from you guys.
Thanks!
Chris Hare
ch...@labr.net
http://www.labr.net
On Nov 2, 2011, at 5:02 AM, Alan Gauld wrote:
> On 02/11/11 05:05, Chris Hare wrote:
>
>>
On 11/02/2011 02:26 AM, spa...@gmail.com wrote:
Shouldn't this be treated as a bug then? As a user I should be allowed
to uninstall the software I want to.
Or you uninstalled other things by mistake?
On Wed, Nov 2, 2011 at 6:18 AM, Joel Montes de Oca
mailto:joelmonte...@gmail.com>> wrote:
Thanks to both of you, that will work. I can see the argument for
assigning everything manually, but I have each parameter on its own
line with a comment to explain what it does, and I know I want all
parameters to be class-level for every instantiation, so saying
"self.[varName]=[varName]" twenty
On 2011/11/02 03:15 PM, Alex Hall wrote:
Hi all,
I have a class which takes a large number of optional arguments for
its __init__. Instead of going through every single one and assigning
it to "self.[name]", is there some quick way to take all the
parameters of the constructor and assign them all
Alex Hall wrote:
> I have a class which takes a large number of optional arguments for
> its __init__. Instead of going through every single one and assigning
> it to "self.[name]", is there some quick way to take all the
> parameters of the constructor and assign them all to self.[name] in
> one
A…. thanks Hugo!!
Chris Hare
ch...@labr.net
http://www.labr.net
On Nov 2, 2011, at 2:14 AM, Hugo Arts wrote:
> On Wed, Nov 2, 2011 at 7:29 AM, Chris Hare wrote:
>>
>> I would like to put each of my classes in separate files to make it easier
>> to edit them and keep the various files as s
Hi all,
I have a class which takes a large number of optional arguments for
its __init__. Instead of going through every single one and assigning
it to "self.[name]", is there some quick way to take all the
parameters of the constructor and assign them all to self.[name] in
one step?
--
Have a gr
On 02/11/11 06:29, Chris Hare wrote:
I would like to put each of my classes in separate files to make it
easier to edit them and keep the various files as small as possible for
editing purposes.
I have come across a couple of problems:
1. I have to use import statements like "from file import
On 02/11/11 06:26, spa...@gmail.com wrote:
Shouldn't this be treated as a bug then? As a user I should be allowed
to uninstall the software I want to.
You can, it just breaks stuff that depends on it.
Just as if you uninstalled Java all your Java applications
would break (eg Eclipse, Freemind e
On 02/11/11 05:05, Chris Hare wrote:
def verifyLogin(self):
farmid = list.get(ACTIVE)
userid = login_userid.get()
login_passwd = login_passwd.get()
gets called, but I get the error
Exception in Tkinter callback
farmid = list.get(
On Wed, Nov 2, 2011 at 7:29 AM, Chris Hare wrote:
>
> I would like to put each of my classes in separate files to make it easier
> to edit them and keep the various files as small as possible for editing
> purposes.
> I have come across a couple of problems:
> 1. I have to use import statements l
I would like to put each of my classes in separate files to make it easier to
edit them and keep the various files as small as possible for editing purposes.
I have come across a couple of problems:
1. I have to use import statements like "from file import class" instead of
"import file"
2
29 matches
Mail list logo