Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Python RTS must use TKinter?

Posted on 2014-01-21
5
Medium Priority
?
493 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 2000 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

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…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
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…

722 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