Re: Allowing Arbitrary Indentation in Python

2007-12-20 Thread Gary
On Dec 19, 10:10 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > ElementTree is a good candidate for processing xml: > http://effbot.org/zone/element.htm > It provides a "natural" way to access elements and attributes, instead of > writing the same handler again and again or using slow DOM

Re: Allowing Arbitrary Indentation in Python

2007-12-20 Thread Gary
On Dec 19, 10:10 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > ElementTree is a good candidate for processing xml: > http://effbot.org/zone/element.htm > It provides a "natural" way to access elements and attributes, instead of > writing the same handler again and again or using slow DOM

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gabriel Genellina
En Thu, 20 Dec 2007 00:46:50 -0300, Gary <[EMAIL PROTECTED]> escribió: > 1) Is it best/more standard to read in, and parse the XML into some > kind of Python hierarchy first, and then build the UI out of the data > in that structure, or call out UI commands as say, callbacks from the > parser live

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 7:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > Hi, Gary. Welcome to Python. I hope you will take some of the reaction > you got as initiatory ribbing. Thanks, Terry, and absolutely! You guys are quite tame compared to some of the lions whose dens I've stumbled into on usenet. Yo

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 7:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > Hi, Gary. Welcome to Python. I hope you will take some of the reaction > you got as initiatory ribbing. Thanks, Terry, and absolutely! You guys are quite tame compared to some of the lions whose dens I've stumbled into on usenet. Yo

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 6:44 pm, Ross Ridge <[EMAIL PROTECTED]> wrote: > Sam <[EMAIL PROTECTED]> wrote: > >cmds.window(t='gwfUI Builder') > >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, > >100))) > >cmds.paneLayout(configuration='horizontal2') > >cmds.frameLayout(l='Layouts')

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 6:44 pm, Ross Ridge <[EMAIL PROTECTED]> wrote: > Sam <[EMAIL PROTECTED]> wrote: > >cmds.window(t='gwfUI Builder') > >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, > >100))) > >cmds.paneLayout(configuration='horizontal2') > >cmds.frameLayout(l='Layouts')

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 3:50 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > You have been done a disservice > by whoever wrote the Maya python bindings, as far as using this tool > to improve your knowledge and understanding of Python goes. No worries there. I'm definitely not using Maya as the way to learn

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Terry Reedy
"Gary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi! I'd like to join the fray, as the person who posted that original | LJ rant. First, some full disclosure, and stampings out of what seem | to me to be misconceptions... Hi, Gary. Welcome to Python. I hope you will take so

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Ross Ridge
Sam <[EMAIL PROTECTED]> wrote: >cmds.window(t='gwfUI Builder') >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, >100))) >cmds.paneLayout(configuration='horizontal2') >cmds.frameLayout(l='Layouts') >cmds.scrollLayout(cr=True) >cmds.columnL

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Chris Mellon
On Dec 19, 2007 4:05 PM, Gary <[EMAIL PROTECTED]> wrote: > > > Chris Mellon writes: > """It's interesting that the solutions "move away from the terrible > abomination of a GUI toolkit" and "write Python wrappers that don't > cause actual physical pain" never occur to him.""" > > Oh, but they hav

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 3:19 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > The problem is that to everybody else in the world, indentation > in Python represents control flow nesting, not GUI widget > nesting. Thanks, Grant. That's the first solid reasoning I've seen, and it's

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Grant Edwards
tack of a containers, which can be thought of in 3D like this > (example found online): The problem is that to everybody else in the world, indentation in Python represents control flow nesting, not GUI widget nesting. Even assuming people can learn new things (in my experience an assumpti

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
Hi! I'd like to join the fray, as the person who posted that original LJ rant. First, some full disclosure, and stampings out of what seem to me to be misconceptions... 1) I am not a CS major. I majored in Computer Animation at an art college. I'm quite well aware that I don't know all there is to

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
Hi! I'd like to join the fray, as the person who posted that original LJ rant. First, some full disclosure, and stampings out of what seem to me to be misconceptions... 1) I am not a CS major. I majored in Computer Animation at an art college. I'm quite well aware that I don't know all there is to

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Chris Mellon
On Dec 19, 2007 10:46 AM, Sam <[EMAIL PROTECTED]> wrote: > On Dec 19, 11:09 am, gDog <[EMAIL PROTECTED]> wrote: > > Hi, Sam- > > > > I'm not wanting to start a flame war, either, but may I ask why does > > your friend want to do that? I'm always intrigued by the folks who > > object to the indenta

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Sam
On Dec 19, 11:09 am, gDog <[EMAIL PROTECTED]> wrote: > Hi, Sam- > > I'm not wanting to start a flame war, either, but may I ask why does > your friend want to do that? I'm always intrigued by the folks who > object to the indentation rules in Python, even though I've always > tried to keep consist

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread gDog
Hi, Sam- I'm not wanting to start a flame war, either, but may I ask why does your friend want to do that? I'm always intrigued by the folks who object to the indentation rules in Python, even though I've always tried to keep consistent indentation in all the languages I've used (and I've been at

Re: Allowing Arbitrary Indentation in Python

2007-12-18 Thread Grant Edwards
On 2007-12-19, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > On Dec 18, 2:16 pm, Sam <[EMAIL PROTECTED]> wrote: >> layouts = ['column', 'form', 'frame'] >> cmds.window(t='gwfUI Builder') >> cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, >> 100))) >> cmds.paneLayout(configu

Re: Allowing Arbitrary Indentation in Python

2007-12-18 Thread Jason
On Dec 18, 5:18 pm, Sam <[EMAIL PROTECTED]> wrote: > On Dec 18, 7:09 pm, Jonathan Gardner > > > > <[EMAIL PROTECTED]> wrote: > > On Dec 18, 2:16 pm, Sam <[EMAIL PROTECTED]> wrote: > > > > layouts = ['column', 'form', 'frame'] > > > cmds.window(t='gwfUI Builder') > > > cmds.paneLayout(configuration=

Re: Allowing Arbitrary Indentation in Python

2007-12-18 Thread Sam
On Dec 18, 7:09 pm, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > On Dec 18, 2:16 pm, Sam <[EMAIL PROTECTED]> wrote: > > > > > layouts = ['column', 'form', 'frame'] > > cmds.window(t='gwfUI Builder') > > cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, > > 100))) > > cmds.pa

Re: Allowing Arbitrary Indentation in Python

2007-12-18 Thread Sam
On Dec 18, 5:28 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-12-18, Sam <[EMAIL PROTECTED]> wrote: > > > > > A friend of mine is picking up some Python and is frustrated by > > Python's indentation rules (http://greatbiggary.livejournal.com/ > > 260460.html?thread=1835884#t1835884). Pers

Re: Allowing Arbitrary Indentation in Python

2007-12-18 Thread Jonathan Gardner
On Dec 18, 2:16 pm, Sam <[EMAIL PROTECTED]> wrote: > layouts = ['column', 'form', 'frame'] > cmds.window(t='gwfUI Builder') > cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, > 100))) > cmds.paneLayout(configuration='horizontal2') > cmds.frameLayout(l='Layouts') >

Re: Allowing Arbitrary Indentation in Python

2007-12-18 Thread Grant Edwards
On 2007-12-18, Sam <[EMAIL PROTECTED]> wrote: > A friend of mine is picking up some Python and is frustrated by > Python's indentation rules (http://greatbiggary.livejournal.com/ > 260460.html?thread=1835884#t1835884). Personally, I've never had any > issues with Python's ways of indentation, but

Allowing Arbitrary Indentation in Python

2007-12-18 Thread Sam
A friend of mine is picking up some Python and is frustrated by Python's indentation rules (http://greatbiggary.livejournal.com/ 260460.html?thread=1835884#t1835884). Personally, I've never had any issues with Python's ways of indentation, but that conversation got me thinking about the issue. Co

Re: indentation in python

2007-01-15 Thread Wolfgang Grafen
Dan Bishop wrote: > On Jan 13, 8:49 pm, "lee" <[EMAIL PROTECTED]> wrote: >> Can anyone tell me the basics about indentation in python..how we >> use it in loops and constructs..etc > > It's just like indentation in other languages, except that it

Re: indentation in python

2007-01-13 Thread Dan Bishop
On Jan 13, 8:49 pm, "lee" <[EMAIL PROTECTED]> wrote: > Can anyone tell me the basics about indentation in python..how we > use it in loops and constructs..etc It's just like indentation in other languages, except that it's syntactically required. --

Re: indentation in python

2007-01-13 Thread BartlebyScrivener
lee wrote: > Can anyone tell me the basics about indentation in python..how we > use it in loops and constructs..etc http://docs.python.org/tut/node5.html#SECTION00520 -- http://mail.python.org/mailman/listinfo/python-list

indentation in python

2007-01-13 Thread lee
Can anyone tell me the basics about indentation in python..how we use it in loops and constructs..etc -- http://mail.python.org/mailman/listinfo/python-list