View Single Post
  #7   Spotlight this post!  
Unread 03-09-2013, 14:27
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Cool Re: Pure Python NetworkTables 2 client

Awesome! I like. I had to do some modifying to the code to get it to work on the receiving end though... (Not 100% following some of your code.)
I replaced the getValue with:
Code:
    def getValue(self, name):
        for i in self.tableValues:
            if self.tableValues[i].name == "/SmartDashboard/"+name:
                return self.tableValues[i].value
        return None
Which works for floats and strings, at least. setValue doesn't work, and I can't quite figure out how or why...
Definitely gonna use this in my Tk dashboard, though.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote