[Tutor] converting string to float

2011-08-10 Thread Shwinn Ricci
I am reading values from excel using xlrd and using a variable to store them in (as part of a loop), as such: position = sheet.cell(j, i).value however, I want to convert position to a floating point number, as the actual cell value is in the form of X.XXX (where X = digits). When I try float(po

[Tutor] visualizing a point on a 3-dimensional surface

2011-08-10 Thread Shwinn Ricci
Say I have a point that I want to visualize by placing a small marker there on the surface of an object. However, what if it's a 3-dimensional object? Would you just use a 3-D coordinate system and then use a rotatable camera script to wheel around and get a better view of the point? __

[Tutor] precision?

2011-08-09 Thread Shwinn Ricci
When comparing a given value with a database of values, but allowing for freedom due to variation at say, the thousandth digit, how does one generalize the precision to this degree? I don't want to truncate, so is there a round() function that takes into account what decimal place the value (databa

Re: [Tutor] General method for creating a partitioned window

2011-08-09 Thread Shwinn Ricci
04/08/11 20:52, Shwinn Ricci wrote: > >> Say I want one half of a 720 x 480 window be dedicated for creating a >> 2-D structure, and the other half for a 3-D structure. There would be a >> line 1 or 2 pixels thick straight down the window that would divide the >> two

[Tutor] General method for creating a partitioned window

2011-08-04 Thread Shwinn Ricci
Say I want one half of a 720 x 480 window be dedicated for creating a 2-D structure, and the other half for a 3-D structure. There would be a line 1 or 2 pixels thick straight down the window that would divide the two sectors. How does one go about doing this without creating two separate GUI windo

[Tutor] KeyError?

2011-07-28 Thread Shwinn Ricci
I have an excel file that I am reading cell values from and putting them into a dictionary. the dictionary looks like this: scafPositions = {position[j]: direction[j]} where position[j] is exclusively floating/numerical values and direction[j] is exclusively strings. When I try to find whether a

[Tutor] Pyglet for 2.7

2011-07-20 Thread Shwinn Ricci
(on a mac. 2.7 python just in case) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Pyglet for 2.7

2011-07-20 Thread Shwinn Ricci
Is this out yet? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] GUI selection help

2011-07-14 Thread Shwinn Ricci
by the way, I'm on a MAC if that helps/hurts at all. On Wed, Jul 13, 2011 at 10:41 AM, Shwinn Ricci wrote: > Hey all, > > I am browsing through the large list of apps for creating GUIs from python > on http://wiki.python.org/moin/GuiProgramming but unfortunately don't k

[Tutor] GUI selection help

2011-07-13 Thread Shwinn Ricci
Hey all, I am browsing through the large list of apps for creating GUIs from python on http://wiki.python.org/moin/GuiProgramming but unfortunately don't know which one is the best for my project, which involves mapping a point on a 2-Dimensional surface to a 3-Dimensional structure by having user