All Samples(7596) | Call(7595) | Derive(0) | Import(1)
A data structure for representing a point or position with integer x and y properties. Most places in wxPython that expect a wx.Point can also accept a (x,y) tuple.
src/s/u/superwillow-HEAD/src/xmlsettingsinterface.py superwillow(Download)
import sys
import string
from wx import Point
import xmltools
class SettingsClass:
"""Class used to interface with Settings XML file"""
for child in graph.childNodes:
if child.nodeName == "Vertex":
name = child.getAttribute("value")
point = Point(int(child.getAttribute("posx")),int(child.getAttribute("posy")))
Vertex[point] = name
Start[name] = float(child.getAttribute("start"))
Final[name] = (child.getAttribute("final") == "true")