ctypes - random access to address space

2009-04-14 Thread janislaw
Hi, I am currently doing a project in which I interface to a PCI card. To ease the prototyping, I call the API functions, which map the address space of the card to a process memory. I acquire the location in the process memory mapped to an address space using card API, resulting in a c structure

Re: If your were going to program a game...

2009-01-01 Thread janislaw
On 1 Sty, 12:37, Tokyo Dan wrote: > If your were going to program a game in python what technologies would > you use? > > The game is a board game with some piece animations, but no movement > animation...think of a chess king exploding. The game runs in a > browser in a window of a social site bu

Re: multiprocessing vs thread performance

2008-12-29 Thread janislaw
On 29 Gru, 15:52, mk wrote: > Hello everyone, > > After readinghttp://www.python.org/dev/peps/pep-0371/I was under > impression that performance of multiprocessing package is similar to > that of thread / threading. However, to familiarize myself with both > packages I wrote my own test of spawnin

Re: tkinter 3.0 multiple keyboard events together

2008-12-28 Thread janislaw
On 28 Gru, 09:43, Pavel Kosina wrote: > well, I am working on a tutorial for youngster (thats why i need to stay > the code as easy as possible). In this game you are hunted by robots. I > could use key"7" on numeric keypad for left-up moving but seems to me, > that "4"+"8" is much more standard f

Re: tkinter 3.0 multiple keyboard events together

2008-12-27 Thread janislaw
On 27 Gru, 15:08, Pavel Kosina wrote: > janislaw napsal(a): > > Use google to find the appropriate site, or browse this site, there > > are plenty of examples. You may want to examine the code I wrote to > > you to catch the idea: > > #-- > >

Re: tkinter 3.0 multiple keyboard events together

2008-12-27 Thread janislaw
On 26 Gru, 17:44, Pavel Kosina wrote: > janislaw napsal(a): > > > On 26 Gru, 05:52, Pavel Kosina wrote: > > >> Is it possible to catch in an event more that one key from keyboard? In > >> my code, I can handle always the only one, the first I press, the others &g

Re: tkinter 3.0 multiple keyboard events together

2008-12-26 Thread janislaw
On 26 Gru, 05:52, Pavel Kosina wrote: > Is it possible to catch in an event more that one key from keyboard? In > my code, I can handle always the only one, the first I press, the others > are omitted. Say, I press both "4" and "8" and only "4" is catched. > > def movePlayer(event): >     print (e

Re: Interrupt python thread

2008-08-25 Thread janislaw
On 24 Sie, 10:48, BlueBird <[EMAIL PROTECTED]> wrote: > > Whenever an exception occurs, in the master thread or in one of the > slave threads, I would like to interrupt all the threads and the main > program. Threading API does not seem to provide a way to stop a > thread, is there anyway to achiev

Re: python custom command interpreter?

2008-08-21 Thread janislaw
On 21 Sie, 07:45, Martin <[EMAIL PROTECTED]> wrote: > I guess you are looking for this: > > http://docs.python.org/lib/module-cmd.html OP may also would like to hack his own language using EasyExtend: http://www.fiber-space.de/EasyExtend/doc/EE.html Most likely an overkill. -- Jan Wicijowski --

Re: Ideas for master's thesis

2008-06-03 Thread janislaw
On Jun 3, 2:27 am, [EMAIL PROTECTED] wrote: > I'm sure you could probably find something having to do with Pypy > (http://codespeak.net/pypy/dist/pypy/doc/home.html) that would be both > manageable and significant enough to warrant a Master's thesis. The Pypy will fade out. You can for example wri

Re: How do *you* use Python in non-GUI work?

2008-05-19 Thread janislaw
On May 19, 12:20 am, John Salerno <[EMAIL PROTECTED]> wrote: > Hey all. Just thought I'd ask a general question for my own interest. Every > time I think of something I might do in Python, it usually involves creating > a GUI interface, so I was wondering what kind of work you all do with Python

Re: Increment Variable Name

2008-01-24 Thread janislaw
On Jan 23, 11:45 pm, David Brochu <[EMAIL PROTECTED]> wrote: > This is probably really trivial but I'm stumped :-( > > Does anyone know how to increment a variable name? > > For example: > > I know the length of a list and I want to pass each element of a list   > to a unique variable, thus I w

Re: Beginning Python

2007-06-07 Thread janislaw
On Jun 5, 4:29 pm, abhiee <[EMAIL PROTECTED]> wrote: > Hello , I have just begun learning python...and I'm loving it...Just > wanted to ask you that how much time would it take me to learn python > completely and which languages should i learn alongwith python to be a > good professional programmer

Re: removing common elemets in a list

2007-05-17 Thread janislaw
On May 16, 8:17 am, [EMAIL PROTECTED] wrote: > Hi, > Suppose i have a list v which collects some numbers,how do i > remove the common elements from it ,without using the set() opeartor. > Thanks There was a similar thread on polish python