Solved

Python RTS must use TKinter?

Posted on 2014-01-21
5
453 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
  • 2
  • 2
5 Comments
 
LVL 34

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 34

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
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 strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now