Hi All,
I am starting a personal coding project which will require a GUI to
connect to fgfs in order to read and write to the internal properties.
(That's the current scope in a 10 words or less).
As I was going through the src/scripts/python directory I saw
FGFSDemo.py and had a quick read thought it could be interesting and
ran it.
While it basically works, it displays errors on the console due to (I
assume) the internal properties having changed since it was last
updated.
I'm happy to work through the code and fix these issues but will
occasionally need some advice on what the new property should be.
For example when clicking on the weather tab, the wind direction is
displayed correctly but the other fields are blank with the following
traceback being dumped on the console. The application continues to run
however.
Traceback (most recent call last):
File "lib-tk/Tkinter.py", line 1348, in __call__
return self.func(*args)
File "lib-tk/Tkinter.py", line 459, in callit
func(*args)
File "FGFSDemo.py", line 162, in <lambda>
self.after_id = self.after( 1000, lambda self=self:
self.update_page() )
File "FGFSDemo.py", line 160, in update_page
page.update_fields()
File "FGFSDemo.py", line 37, in update_fields
f.update_field(self.fgfs)
File "FGFSDemo.py", line 22, in update_field
self.field.entry.insert(0, val)
File "lib-tk/Tkinter.py", line 2317, in insert
self.tk.call(self._w, 'insert', index, string)
TclError: wrong # args: should be
".46912504842648.46912504842720.nbframe.weather.46912504862264.46912504862624.frame.entry
insert index text"
Regards
George
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel