SelfExtract with zipfile

2005-11-23 Thread Catalin Lungu
Hi,
I need to compress files in self-extract archive. I use the zipfile module. 
Is there an option or parameter to do that?

Thanks in advance,
Catalin 


-- 
http://mail.python.org/mailman/listinfo/python-list


Image capture

2005-01-05 Thread Catalin Lungu
Hi,
Can anybody help me to implement the following VB code in Python. Thanks in 
advance.

Private Declare Function SendMessage Lib "user32.dll" Alias _
   "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
   ByVal wParam As Long, ByVal lParam As Long) As Long

Private Const WM_PAINT = &HF
Private Const WM_PRINT = &H317
Private Const PRF_CLIENT = &H4&
Private Const PRF_CHILDREN = &H10&
Private Const PRF_OWNED = &H20&

Private Sub Command1_Click()
   SendMessage grid.hwnd, WM_PAINT, picture.hDC, 0
   SendMessage grid.hwnd, WM_PRINT, picture.hDC, PRF_CHILDREN Or PRF_CLIENT
Or PRF_OWNED
   picture.Picture = picture.Image
   picture.Refresh
End Sub


Catalin
[EMAIL PROTECTED] 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Image capture

2005-01-05 Thread Catalin Lungu
Hi,

I want to capture a no visible area of a wxFrame of  Python. This area 
contain  a wxGrid object. In VB6 this code work very good.

Thanks.

"Kartic" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
> Catalin,
>
> Some explanation about what you are tring to do will be of immense
> help.
>
> Did you want to capture some other Windows object from Python or do you
> want to capture a Python GUI application from Python?
>
> I might be able to help out, but please send more details.
> Thank you,
> --Kartic
> 


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to make executable file ?

2005-01-05 Thread Catalin Lungu
Also, you can try with py2exe. It's very easy.
Catalin.

"Andrew Robert" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
> BOOGIEMAN wrote:
>> Just how to make *.exe file from python code ??
>> I typed this :
>>
>> a, b = 0, 1
>> while b < 1000:
>> print b,
>> a, b = b, a+b
>>
>> and saved it as pyt.txt
>>
>> Now, how do I make pyt.exe file ???
>> I want to run it on windows where isn't installed python.
>
> You may want to try cx_freeze.
>
> Details on it can be found at 
> http://starship.python.net/crew/atuining/cx_Freeze/
>
> Binaries are available for Linux and Windows.
>
> Alternately, source code is available if you need to compile it for a 
> different platform.
>
>
> -- 
> Thank you,
> Andrew Robert
>
> E-mail: [EMAIL PROTECTED]
> Ur: http://shardservant.no-ip.info 


-- 
http://mail.python.org/mailman/listinfo/python-list