Re: read text file byte by byte

2009-12-15 Thread daved170
On 13 דצמבר, 22:39, Dennis Lee Bieber wrote: > On Sat, 12 Dec 2009 22:15:50 -0800 (PST), daved170 > declaimed the following in gmane.comp.python.general: > > > Thank you all. > > Dennis I really liked you solution for the issue but I have two > > question about it: &g

Re: read text file byte by byte

2009-12-12 Thread daved170
On Dec 13, 2:34 am, Dennis Lee Bieber wrote: > On Sat, 12 Dec 2009 10:46:01 +0100, census > declaimed the following in gmane.comp.python.general: > > > > > def scramble (a): return (a + 13) % 256 > >         I'll see your modulo rot 13 and raise with a exclusive or... > > -=-=-=-=- > > import sys

read text file byte by byte

2009-12-11 Thread daved170
Hello everybody, I need to read a text file byte after byte. Eache byte is sent to a function that scramble it and I need to write the result to binary file. I've got some questions - 1) How do I read the file byte by byte 2) Should I use streams? If so and I get my entire scrambled text in stream

run exe and create exe

2009-10-11 Thread daved170
Hi everybody, I have 2 questions: 1) I created my python application. It has QT Gui. How can I make exe of it? I don't want everytime I run the file it'll open the command line window which does nothing. 2) My Application suppose to be a client server app. Anyhow, for now It's running only on loca

Looger object only prints "ERROR"s

2009-09-24 Thread daved170
hi everybody, I took your adviced and used the logging object. I copied the example in 16.6.15.2 - "using logging in multiple modules" from http://docs.activestate.com/activepython/3.1/python/library/logging.html. unfortunattly it only prints to file the ERROR level's messages and ignore the othe

Re: passing object between classes

2009-09-21 Thread daved170
On Sep 21, 1:44 pm, Duncan Booth wrote: > daved170 wrote: > > Hi everybody, > > I built my owen log obj as a class. > > I'm passing it to another object (actually to a thread). > > When I run my app it raise error at the line when I'm using that log > >

passing object between classes

2009-09-21 Thread daved170
Hi everybody, I built my owen log obj as a class. I'm passing it to another object (actually to a thread). When I run my app it raise error at the line when I'm using that log obj. is there any problem with the concept of passing object as I do it? How can I do that? class A: def foo1: myLog =

raise errors

2009-09-21 Thread daved170
Hi everybody, I need help with exceptions raising. My goal is to print at the outer functions all the errors including the most inner one. For example: def foo1(self): try: foo2() except ? : print "outer Err at foo1" + ?? def foo2(self): try: error occured ex

Re: weird str error

2009-09-16 Thread daved170
On Sep 15, 6:29 pm, Peter Otten <__pete...@web.de> wrote: > daved170 wrote: > > Hi everybody, > > I'm using SPE 0.8.3.c as my python editor. > > I'm using thestr() function and i got a very odd error. > > > I'm trying to do this: printstr("HI

weird str error

2009-09-15 Thread daved170
Hi everybody, I'm using SPE 0.8.3.c as my python editor. I'm using the str() function and i got a very odd error. I'm trying to do this: print str("HI") When i'm writing this line in the shell it prints: HI When it's in my code (it's the only line) i'm getting the following error: file "c:\Python

Re: PyQT Qthread stuck main app

2009-09-15 Thread daved170
On Sep 15, 2:54 pm, David Boddie wrote: > On Tue Sep 15 12:59:35 CEST 2009, daved170 wrote: > > > my problem is that when start is pusshed the entire window stuck and > > it's impossible to push the STOP button and even when it looks like > > it's been pu

PyQT Qthread stuck main app

2009-09-15 Thread daved170
Hi everybody, I've got a simple GUI app written in python and pyqt. I'm having 2 buttons - "start" and "stop" start calls a function that start a thread and stop stops it. my problem is that when start is pusshed the entire window stuck and it's impossible to push the STOP button and even when it

PyQT child forms

2009-09-13 Thread daved170
Hi everybody, I'm building my GUI app with PyQT and i'm quite new with it. I looked for example for managing a form and a child form. My goal is to run the main form and a certain button will open a child form. Whenever the child form will be open the main form will be disabled until the child form

Re: run exe on different computer

2009-09-13 Thread daved170
On Sep 13, 2:17 pm, Dave Angel wrote: > daved170 wrote: > > Hi everybody, > > I'm building a small python program that run a service (exe file) on > > my servers. > > I don't want to use remote desktop and it's siblings. > > > I would like

run exe on different computer

2009-09-13 Thread daved170
Hi everybody, I'm building a small python program that run a service (exe file) on my servers. I don't want to use remote desktop and it's siblings. I would like to have some information on how to run an exe on a different computer and if there a way to check if that exe is still alive. Thanks Da

Re: PythonCard - My app stuck when button clicked

2009-05-14 Thread daved170
On May 14, 2:37 pm, Dave Angel wrote: > daved170 wrote: > > On May 13, 7:42 pm, Dave Angel wrote: > > >> daved170 wrote: > > >>> Hi there, > >>> I'm newbie in pythonCard. > >>> I have an application with 2 buttons : START , STOP

Re: PythonCard - My app stuck when button clicked

2009-05-14 Thread daved170
On May 13, 7:42 pm, Dave Angel wrote: > daved170 wrote: > > Hi there, > > I'm newbie in pythonCard. > > I have an application with 2 buttons : START , STOP > > Start execute a while(1) loop that execute my calculations. > > Stop suppose to raise a flag tha

PythonCard - My app stuck when button clicked

2009-05-13 Thread daved170
Hi there, I'm newbie in pythonCard. I have an application with 2 buttons : START , STOP Start execute a while(1) loop that execute my calculations. Stop suppose to raise a flag that will end that loop. Whenever I pish the START button my GUI is stuck. the calculation executes but I can't push the