[Tutor] [wxPython-users] passing file name from one script to the GUI class

2007-12-02 Thread Varsha Purohit
hello All, I am attaching two scripts. One is readfile.py which is a gui script where there is a image display panel and a button. Now what i want is when i click on the button, then it should call a function which is there in second script clases_calling.py which basically passes the second i

Re: [Tutor] [wxPython-users] Dynamically loading images on the panel of GUI

2007-12-02 Thread Varsha Purohit
This problem is getting solved if i use the Refresh function in the button handler. But I have a function where i am generating Jpeg images dynamically in a separate script. And i need to load these images on GUI as soon as they start generating. They have common names like xyz1.jpeg and xyz2.jpeg.

[Tutor] [wxPython-users] Dynamically loading images on the panel of GUI

2007-12-02 Thread Varsha Purohit
hello everyone, i made a small applicatin where i need to display an image on a panel. and then when i press the read button it should read another image and display it on the same panel. Its working but i have to press the read button two times then only its working import wx import o

[Tutor] ElementTree - reading large XML files as file handles

2007-12-02 Thread jimmy Zhang
I think you may find vtd-xml (http://vtd-xml.sf.net) useful, it has Java, C and C# version available. so you may have to do it in a different language other than Java Dear tutors, I use ElementTree for XML works. I have a 1.3GB file to parse. I takes a lot of time to open my input XML file.

Re: [Tutor] windows api

2007-12-02 Thread bob gailer
elis aeris wrote: > i know that site, i program in c++ on windows. > > however, the syntax in different. how do I find out python's way of > using it? This is a ctypes question; See http://python.net/crew/theller/ctypes/ especially the Documentation links. ___

Re: [Tutor] windows api

2007-12-02 Thread elis aeris
i know that site, i program in c++ on windows. however, the syntax in different. how do I find out python's way of using it? On Dec 2, 2007 11:36 PM, bob gailer <[EMAIL PROTECTED]> wrote: > elis aeris wrote: > > this code uses windows api, but where do I find documentation about > > how to use

Re: [Tutor] PyQt segfault

2007-12-02 Thread David Boddie
On Sat Dec 1 19:12:01 CET 2007, Tiago Saboga wrote: > If I understand that correctly, my Aux.mystring is pointing to the > same object passed by QtCore.SIGNAL, which is being garbage-collected? > But the reference in Aux.mystring should not be enough to keep the > object around? I think PyQt woul

Re: [Tutor] Indentation Issue and Blind People

2007-12-02 Thread Dave Kuhlman
On Fri, Nov 30, 2007 at 11:34:05AM -0800, jim stockford wrote: > > you might consider keeping your code at two > spaces and when/if the need arises to share > your code, write a little filter program that > translates the two-space indents to four. > very interesting idea to play piano not

Re: [Tutor] windows api

2007-12-02 Thread bob gailer
elis aeris wrote: > this code uses windows api, but where do I find documentation about > how to use them? Hmm - looks like something from Experts Exchange. If you are asking for the Windows API Reference, try: http://msdn2.microsoft.com/en-us/library/aa383749.aspx ctypes is a Python module tha

Re: [Tutor] windows api (Out of office)

2007-12-02 Thread elis aeris
On Dec 2, 2007 11:28 PM, Pierre DeWet <[EMAIL PROTECTED]> wrote: > I will be out of the office until Monday 10 December. If your request is > urgent, please contact the helpdesk at: [EMAIL PROTECTED], > alternatively, please dial: 0207 566 8771 > > Cheers > Pierre > ___

[Tutor] windows api

2007-12-02 Thread elis aeris
this code uses windows api, but where do I find documentation about how to use them? import time import ImageGrab # Part of PIL from ctypes import * #time.sleep(5) # Load up the Win32 APIs we need to use. class RECT(Structure): _fields_ = [ ('left', c_ulong), ('top', c_ulong),