Solved

Python RTS must use TKinter?

Posted on 2014-01-21
5
468 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 94
Fibonacci challenge 11 121
python sqlite question 11 46
How can I do this in Pyhton? 12 125
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 lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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 …

776 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