I want thank you guys for helping me out with python programming.I achieved
the best out of this and now am on the next stage of programming, I now don't
need this tutor any more...thank you once again. ___
Tutor maillist - Tutor@python.org
To un
Hi Danny,
Curious to the use the need of using while True in the given example of
ask_for_a_digit().
On Mon, Nov 17, 2014 at 9:57 AM, Danny Yoo wrote:
> > def ask_for_a_digit():
> > while True:
> > digit = raw_input("Give me a digit between 0 and 9.")
> > if digit not in "0
Hi,
If you don't need.
You can anytime simply go to the link which is mentioned (as a footer in
the email) and unsubscribe.
rather posting this message to the tutor.
On Wed, Nov 26, 2014 at 2:59 PM, moemedi baboile <
moemedibabo...@yahoo.com.dmarc.invalid> wrote:
> I want thank you guys for help
On 26/11/14 09:57, Sunil Tech wrote:
Hi Danny,
Curious to the use the need of using while True in the given example of
ask_for_a_digit().
On Mon, Nov 17, 2014 at 9:57 AM, Danny Yoo mailto:d...@hashcollision.org>> wrote:
> def ask_for_a_digit():
> while True:
> digit =
On 26/11/2014 09:59, Sunil Tech wrote:
Hi,
If you don't need.
You can anytime simply go to the link which is mentioned (as a footer
in the email) and unsubscribe.
rather posting this message to the tutor.
I think he was just politely saying goodbye
--
Regards,
Giles Coochey, CCNP, CCNA, CC
Thank you Alan. But a question here, how would it understand that the given
input is valid?
The while loop makes it keep on asking until a valid input is
received. Without the while loop it would only ask once and
either return None or a digit.
On Wed, Nov 26, 2014 at 3:46 PM, Alan Gauld
wro
Please don't top-post. Put your response under the quote you're
responding to. And trim the parts that are no longer relevant. I've
rearranged this message to try to pretend that you did that.
> On Wed, Nov 26, 2014 at 3:46 PM, Alan Gauld
> wrote:
>
>> On 26/11/14 09:57, Sunil Tech wrote:
>
Thank you Dave
On Wed, Nov 26, 2014 at 5:23 PM, Dave Angel wrote:
>
>
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi I'm new to Python and I would like to know how he deals with memory
space.
I thought I had understood but I made a test and the results were
uncoherenent with my understanding, here is the thing:
>>> a=[1,2]
>>> l=[a,a]
>>> id(a); id(l[0]); id(l[1]);
61659528
61659528
61659528
>>> #All Have the
Thank you Alan for explanation
That's what the bit inside the loop does.
> It checks whether the input string is a digit (specifically a decimal
> digit).
> If it is a digit it returns the result as an integer
> otherwise it spits out an error and goes round the loop again.
>
_
On 26/11/14 11:16, Sunil Tech wrote:
Thank you Alan. But a question here, how would it understand that the
given input is valid?
That's what the bit inside the loop does.
It checks whether the input string is a digit (specifically a decimal
digit).
If it is a digit it returns the result as
Hi,
This web is quite useful to visualize what is happening:
http://www.pythontutor.com/visualize.html#mode=edit
Step by Step:
>>> a=[1,2]
You create a list a which contains two objects, in this case two integers
(1, 2)
>>> l=[a,a]
You create a list which contains two objects, which happen to be
Python 2.4.4
Solaris 10
I can accomplish this by getting the screen height and width and
calculating pixel coordinates. But so far I have not found something
equivalent to anchor = 'CENTER' that can be applied to the root
window. Does such an easy attribute, method, or whatever exist in
Tkinter?
Python 2.4.4
Solaris 10
--
boB
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 26/11/14 12:57, Mohamed Ben Mosbah wrote:
Hi I'm new to Python and I would like to know how he deals with memory
space.
Don't even think about it, you will only mislead yourself.
Seriously you shouldn't try to link Python objects to physical
memory locations. And you should certainly never b
On 26/11/14 16:46, boB Stepp wrote:
I can accomplish this by getting the screen height and width and
calculating pixel coordinates. But so far I have not found something
equivalent to anchor = 'CENTER' that can be applied to the root
window. Does such an easy attribute, method, or whatever exist
On 26/11/14 16:48, boB Stepp wrote:
Python 2.4.4
Solaris 10
I can't find anything on this and I suspect that's because
title bar colour is generally part of the user's preferred
colour scheme. Even in Windoze the title bar colour is part
of the users preferences. Colour-blind users don't like
a
On Wed, Nov 26, 2014 at 11:25 AM, Alan Gauld wrote:
> On 26/11/14 16:48, boB Stepp wrote:
>>
>> Python 2.4.4
>> Solaris 10
>
>
> I can't find anything on this and I suspect that's because
> title bar colour is generally part of the user's preferred
> colour scheme. Even in Windoze the title bar co
On Wed, Nov 26, 2014 at 11:23 AM, Alan Gauld wrote:
> On 26/11/14 16:46, boB Stepp wrote:
>
>> I can accomplish this by getting the screen height and width and
>> calculating pixel coordinates. But so far I have not found something
>> equivalent to anchor = 'CENTER' that can be applied to the root
On 26/11/14 17:44, boB Stepp wrote:
But forcing a window to be centre of the display is usually
a bad idea - and very annoyying to the user, especially if they have
In the current scenario, users of our planning system will initiate a
planning system script (proprietary language) that will ca
On 26/11/14 17:39, boB Stepp wrote:
of the users preferences. Colour-blind users don't like
apps that mess with what they can read.
The application I am attempting to write will show up in the
foreground of our planning software. This planning software has its
own color scheme, which all of us
On Wed, Nov 26, 2014 at 11:50 AM, Alan Gauld wrote:
> On 26/11/14 17:44, boB Stepp wrote:
>
[...]
> So they can't read email, write reports, browse web sites?
> And what if the OS or sysadmin is also trying to catch their eye - maybe
> because the server is going down and they have 30 secs to save
On Wed, Nov 26, 2014 at 11:58 AM, Alan Gauld wrote:
> On 26/11/14 17:39, boB Stepp wrote:
>
[...]
>> The application I am attempting to write will show up in the
>> foreground of our planning software. This planning software has its
>> own color scheme, which all of us are quite used to.
>
>
> Ser
On 26/11/14 18:25, boB Stepp wrote:
So they can't read email, write reports, browse web sites?
Actually, they cannot do any of these things except save their work!
In that case you get away with it.
I'm still not sure messing with "user preferences" is a good thing
but you can at least be re
Python 2.4.4
Solaris 10
#!/usr/bin/env python
from Tkinter import *
def printLabel():
print "Button number ", var.get(), " was pressed."
print "You selected this option:", l[var.get() - 1][0]
root = Tk()
root.title("ROI List Creator")
root.geometry(newGeometry='225x230+900+300')
root.tk
On 26/11/14 23:23, boB Stepp wrote:
def printLabel():
print "Button number ", var.get(), " was pressed."
print "You selected this option:", l[var.get() - 1][0]
...
buttonNumber = []
l = [("Brain_Partial", 1), ("Brain_Whole", 2),
("Head & Neck", 3), ("Chest",
On Wed, Nov 26, 2014 at 05:23:40PM -0600, boB Stepp wrote:
> Python 2.4.4
> Solaris 10
>
> #!/usr/bin/env python
>
> from Tkinter import *
>
> def printLabel():
> print "Button number ", var.get(), " was pressed."
> print "You selected this option:", l[var.get() - 1][0]
>
> root = Tk()
On Wed, Nov 26, 2014 at 01:57:52PM +0100, Mohamed Ben Mosbah wrote:
> Hi I'm new to Python and I would like to know how he deals with memory
> space.
That will depend on *which* Python you are using.
Jython uses the Java Virtual Machine, including the Java garbage
collector. IronPython uses .Ne
Hi all,
I have been trying to install the zope interface as part of the twisted
installation with no luck.
Any suggestions ?
Sent from my iPad
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.o
On 27/11/14 00:45, Gary wrote:
Hi all,
I have been trying to install the zope interface as part of the twisted
installation with no luck.
Any suggestions ?
Nope. Sorry.
But since this list is aimed at the core language and standard
library, and neither Zope nor Twisted are part of that, you
Hey...
When you get this resolved.. if you don't mind.. post the soln back here!!
thanks
ps. I know, not strictly a py language issue.. but might really help
someone struggling to solve the same issue!
On Wed, Nov 26, 2014 at 7:45 PM, Gary
wrote:
> Hi all,
> I have been trying to install the
On Wed, Nov 26, 2014 at 6:20 PM, Steven D'Aprano wrote:
> On Wed, Nov 26, 2014 at 05:23:40PM -0600, boB Stepp wrote:
[...]
>> First question: How can the printLabel() function see the list
>> variable, l, defined outside of this function? I thought that
>> functions only had access to variables lo
Hi All,
I am planning to start a small project , so i need some suggestions on how
to go about it.
1) It basically takes some inputs like (name,age,course,joining
date,remarks) so on.
2) I want a light front end for it.
3) i should be able to query for a particular person on a particular date
or
33 matches
Mail list logo