Attention: Answers.ros.org is deprecated as of August the 11th, 2023. Please visit robotics.stackexchange.com to ask a new question. This site will remain online in read-only mode during the transition and into the foreseeable future. Selected questions and answers have been migrated, and redirects have been put in place to direct users to the corresponding questions on Robotics Stack Exchange. Additional details are available here.
If you have ROS installed in the place, where you are going to run Tk program, you can simply use rospy Subscribers to subscribe to topics, where you will get the data.
If you want to run the Tk program in an OS, which doesn't have ROS, you can convert the messages to JSON format using rosbridge_suite and then use generic python packages to convert JSON to your Tk package.
If you have ROS installed in the place, where you are going to run Tk program, you can simply use rospy Subscribers to subscribe to topics, where you will get the data.
If you want to run the Tk program in an OS, which doesn't have ROS, you can convert the messages to JSON format using rosbridge_suite and then use generic python packages to convert JSON to be compatible with your Tk package.