Solved

Python RTS must use TKinter?

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
dividesSelf challange 15 205
Copy Files - Python 7 108
Python:compare IP with IP:blahblah and output the entire line?? 7 75
how to split this type of line? 5 106
As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
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…
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

740 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