473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to write an animation (Matrix) in python

1
Hello,

I would like to write a matrix animation, but I don't know what to do (What I need for beginning), I have never written anything GUI, I used to write only in console.

I don't want a ready-made code, Just please say what I need to know, what should I read to write so application.

Greetings
Oct 14 '11 #1

✓ answered by bvdet

Using Tkinter, there is more than one way to approach this. One way would be to create a canvas on a top-level window with a rectangular grid of widgets (the possibilities are almost endless). Use widget method after() (Usage: w.after ( delay_ms, callback=None, *args )) to request a call to function callback. Each time callback is called the next matrix of the animation would be created.

There are several good resources on the internet to learn Tkinter.

1 3118
bvdet
2,851 Expert Mod 2GB
Using Tkinter, there is more than one way to approach this. One way would be to create a canvas on a top-level window with a rectangular grid of widgets (the possibilities are almost endless). Use widget method after() (Usage: w.after ( delay_ms, callback=None, *args )) to request a call to function callback. Each time callback is called the next matrix of the animation would be created.

There are several good resources on the internet to learn Tkinter.
Oct 14 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
3
by: Ali | last post by:
I have the following webpage with a javasctript in it: <html> <head> <title>Custom Objects Test</title> <script language="javascript"> function PrintCard() { line1 = "<hr>\n"; line2 =...
6
by: Tristan Beeline | last post by:
I think that today's world is boring, so I bought myself 100 computers, thousands of harddisks and enough RAM to create my own Matrix to live in it. Do you think I can use C++ to write my Matrix...
9
by: Kenneth McDonald | last post by:
I have a module I'd like to document using the same style... Thanks, Ken
4
by: comboots | last post by:
I am trying to write a Program that takes a string and converts it to Ascii, then writes the numbers to a txt file. However when I try to use the .write() function python throws an error "TypeError:...
40
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I'm really annoyed at Python - and not for the reasons already mentioned on this list. Everyone know that programming is supposed to be a dark art, nearly impossible to learn. Computer code is...
3
Elias Alhanatis
by: Elias Alhanatis | last post by:
Hello everybody!! Could you please inform me how can i add a sound file to an app. which animates cartoons ( ..or whatever..). I am working with Vista,Python2.5.1,IDLE,Tkinter. Thank you all in...
11
by: deeptismuley | last post by:
Hello, i want to write an array to a text file using visual basic. the output should look like this for a 5X5 sized array. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...
2
by: http://members.lycos.co.uk/dariusjack/ | last post by:
I need to draw a shaded rectangle and have flashing (gif animated) points on it so not to refresh all objects a rectangle, but points, changing their colors, attributes. Please refer me to some...
3
by: fordie1000 | last post by:
Hi, I am not new to python and I use it all the time but I was wondering how to create a brand spanking new module?? I know I could write it in python and import it etc. but I was wondering...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.