Post Tagged Python

Some Python Code Lines for Xml

Monday, 08 August 2010

p.childNodes[0].childNodes[0].lastChild.getAttribute("n")
p.getElementsByTagName("youtube")[0].lastChild.getAttribute("n")
int(x.childNodes[0].childNodes[0].lastChild.getAttribute("n"))
‎.lastChild.lastChild.childNodes.remove(aa.lastChild.lastChild.lastChild)
x.childNodes[0].childNodes[3].childNodes.length
childNodes[0].childNodes[ii].childNodes.pop().toxml()
aa.childNodes[0].childNodes[0].childNodes.pop(0).toxml()
e=x.childNodes[0].childNodes[enuzun].childNodes[0].getElementsByTagName("e")[0].firstChild.data


Python Tkinter Treeview Get Values

Sunday, 03 March 2010


>>>self.allrow.bind("",self.myFunc)
>>>def myFunc(self,event):
allrow=allrow.mytreeview.item(self.mytreeview.selection())
print(allrow)
print(allrow["values"][0])
{'text': '8', 'image': '', 'values': ['KARDAN ADAM', 'http://www.m-eken.com'], 'open': 0, 'tags': ''}
Aruz
>>>


  • "I am a dreamer. Seriously, I'm living on another planet."
  • Lütfü Hoca

  • Categories

  • Archives