Solved

Python RTS must use TKinter?

Posted on 2014-01-21
5
488 Views
Last Modified: 2014-01-26
Am starting Python learning

I assume TKinter is the thing I should learn as far as making a Python RTS? - and PyGame

Can Python do Datagram bouncing as needed by an RTS? - as relatively easy as is in Java?

What about back-buffering in TKinter? can it handle a battle scene?
0
Comment
Question by:beavoid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 39805797
If you are already familiar with Java, you might like to look at Jython (Java-Python, as opposed to C-Python). Jython gives access to all the Java GUI elements but, because of using introspection, the interface is simplified with many calls being replaced by properties.
0
 

Author Comment

by:beavoid
ID: 39806337
Thanks,
Jython sounds like a shortcut, and I'd prefer to use pure Python.
Is TKinter the only way to go for an RTS? Will an RTS's load of units be no problem for Python?
0
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 39808073
Jython is Python, written in Java. It's as pure as any other Python variant. C-Python (what you call "pure" Python) uses Tk as its graphics engine by default.
C-Python has an embedded Tcl/Tk interpreter. As such, it is never going to be as fast as a programmatic interface. Sticking with C-Python, I would think PyQT4 might be more suitable for your requirements, but you have other choices which are listed in this TkInter tutorial.
By the way, what does RTS stand for?
0
 

Author Comment

by:beavoid
ID: 39808077
Real time strategy game. . Like Starcraft and Warcraft. A war game controlled by mouse commands to a big army of warriors / war vehicles. Lots on YouTube.
So, I just need a normal game programming perspective of back buffer with scene and
objects moving on it. TKinter seems adequate. Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"The time has come," the Walrus said, "To talk of many things: Of sets--and lists--and dictionaries-- Of variable kinks-- And why you see it changing not-- And why so strange are strings." This part describes how variables and references (see …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question