Text not showing up

2005-10-14 Thread Simone
Hi all, I am new to python and trying to write a simple GUI that would 
call 2 growisofs processes (dvd burning) at the same time, and retrive 
the exit code to be printed on a text box (couldn't find any program 
that could use multiple dvd burners, not even k3b). Excuse me if this is 
really a simple problem, but two days of googling didn't help.
 The program is really simple, I developed the GUI using glade and it 
works.
The only thing I would like to improve is that I'd like it to show in 
the text boxes messages like "Waiting for use input" or "Burning dvd 
please wait", but it looks like even though I don't have any error, the 
message won't show up until the burning process is finished (showing 
either "burning successfully" or "an error occurred").
I am not sure I made myself clear on this, but I will post the relevant 
code trying to explain it:

import os, sys
import gtk.glade
   
class DVD:
   
 
def __init__(self):
print "Initializing the Graphic User Interface: This may take 
some time"
self.xml=gtk.glade.XML("./dvd2.xml") 
self.window=self.xml.get_widget("dvd")
self.xml.signal_connect('on_quit_clicked', self.Quit)
self.xml.signal_connect('on_burn_clicked', self.Burn)   

self.OrdKeys=["comboentry1","entry1","spinbutton1","entry2","esitotext","esitotext1"]
  
# here esitotext is the box I want the text to show up



def Quit(self, *args):
gtk.mainquit()

def Burn(self, *args):

comand=""
comand2=""

name=self.xml.get_widget("entry1").get_text()#name 
for the dvd
path=self.xml.get_widget("comboentry1").get_text()   #path to 
dvd AUDIO_TS and VIDEO_TS
num=self.xml.get_widget("spinbutton1").get_text()  #chosing 
the number of dvd to burn
pub=self.xml.get_widget("entry2").get_text()
#publisher
self.xml.get_widget("esitotext").set_text("Waiting for 
input") #THIS NEVER SHOWS UP

   
dvd1="/dev/hda" # this is the first dvd 
burner, edit as needed
dvd2="/dev/hdc" # this is the second dvd 
burner, edit as needed



comand+="growisofs -dvd-compat -Z "+dvd1+" -dvd-video -V 
"+name+" -publisher "+pub+" "+path 
comand2+="growisofs -dvd-compat -Z "+dvd2+" -dvd-video -V 
"+name+" -publisher "+pub+" "+path


if num == "1":
self.xml.get_widget("esitotext").set_text("Burning the dvd, 
please wait")#  THIS NEVER SHOWS UP, unless i have an error and 
the program

   #  quits 
before executing the command
self.xml.get_widget("esitotext").show() 
   #  don't know if this is correct, 
but it doesn't work either
f = os.popen(comand, 'r')
line = f.readline()

error_in_prog = f.close()
if error_in_prog:
error=str(error_in_prog)
self.xml.get_widget("esitotext").set_text("An error 
occurred. Burn not completed")  # THIS COMES UP as it should
self.xml.get_widget("esitotext").show()
else:
self.xml.get_widget("esitotext").set_text("Burn 
completed successfully")# THIS COMES UP as it should
self.xml.get_widget("esitotext").show()


if __name__=='__main__':
main=DVD()
gtk.main()


Any comment, help, url, really appreciated.

Have a nice day
Simone



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


Repost: Text not showing up

2005-10-17 Thread Simone
Simone wrote:

>Hi all, I am new to python and trying to write a simple GUI that would 
>call 2 growisofs processes (dvd burning) at the same time, and retrive 
>the exit code to be printed on a text box (couldn't find any program 
>that could use multiple dvd burners, not even k3b). Excuse me if this is 
>really a simple problem, but two days of googling didn't help.
> The program is really simple, I developed the GUI using glade and it 
>works.
>The only thing I would like to improve is that I'd like it to show in 
>the text boxes messages like "Waiting for use input" or "Burning dvd 
>please wait", but it looks like even though I don't have any error, the 
>message won't show up until the burning process is finished (showing 
>either "burning successfully" or "an error occurred").
>I am not sure I made myself clear on this, but I will post the relevant 
>code trying to explain it:
>
>import os, sys
>import gtk.glade
>   
>class DVD:
>   
> 
>def __init__(self):
>print "Initializing the Graphic User Interface: This may take 
>some time"
>self.xml=gtk.glade.XML("./dvd2.xml") 
>self.window=self.xml.get_widget("dvd")
>self.xml.signal_connect('on_quit_clicked', self.Quit)
>self.xml.signal_connect('on_burn_clicked', self.Burn)   
>
>self.OrdKeys=["comboentry1","entry1","spinbutton1","entry2","esitotext","esitotext1"]
>  
># here esitotext is the box I want the text to show up
>
>
>
>def Quit(self, *args):
>gtk.mainquit()
>
>def Burn(self, *args):
>
>comand=""
>comand2=""
>
>name=self.xml.get_widget("entry1").get_text()#name 
>for the dvd
>path=self.xml.get_widget("comboentry1").get_text()   #path to 
>dvd AUDIO_TS and VIDEO_TS
>num=self.xml.get_widget("spinbutton1").get_text()  #chosing 
>the number of dvd to burn
>pub=self.xml.get_widget("entry2").get_text()
>#publisher
>self.xml.get_widget("esitotext").set_text("Waiting for 
>input") #THIS NEVER SHOWS UP
>
>   
>dvd1="/dev/hda" # this is the first dvd 
>burner, edit as needed
>dvd2="/dev/hdc" # this is the second dvd 
>burner, edit as needed
>
>
>
>comand+="growisofs -dvd-compat -Z "+dvd1+" -dvd-video -V 
>"+name+" -publisher "+pub+" "+path 
>comand2+="growisofs -dvd-compat -Z "+dvd2+" -dvd-video -V 
>"+name+" -publisher "+pub+" "+path
>
>
>if num == "1":
>self.xml.get_widget("esitotext").set_text("Burning the dvd, 
>please wait")#  THIS NEVER SHOWS UP, unless i have an error and 
>the program
>
>   #  quits 
>before executing the command
>self.xml.get_widget("esitotext").show() 
>   #  don't know if this is correct, 
>but it doesn't work either
>f = os.popen(comand, 'r')
>line = f.readline()
>
>error_in_prog = f.close()
>if error_in_prog:
>error=str(error_in_prog)
>self.xml.get_widget("esitotext").set_text("An error 
>occurred. Burn not completed")  # THIS COMES UP as it should
>self.xml.get_widget("esitotext").show()
>else:
>self.xml.get_widget("esitotext").set_text("Burn 
>completed successfully")# THIS COMES UP as it should
>self.xml.get_widget("esitotext").show()
>
>
>if __name__=='__main__':
>main=DVD()
>gtk.main()
>
>
>Any comment, help, url, really appreciated.
>
>Have a nice day
>Simone
>
>
>
>  
>

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


subprocess.popen how wait complete open process

2022-08-21 Thread simone zambonardi
Hi, I am running a program with the punishment subrocess.Popen(...) what I 
should do is to stop the script until the launched program is fully open. How 
can I do this? I used a time.sleep() function but I think there are other ways. 
Thanks
-- 
https://mail.python.org/mailman/listinfo/python-list


"pip" error message

2020-04-20 Thread Simone Bravin

Hello everyone,

I just started using Python to learn a bit of coding, so I'm pretty a 
newbie to this, I tried to install few extra packages using pip but it 
doesn't work.


When I check for pip version using command line> pip --version I get 
the following error message:


Traceback (most recent call last):
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", 
line 193, in _run_module_as_main

    return _run_code(code, main_globals, None,
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py", 
line 86, in _run_code

    exec(code, run_globals)
  File 
"C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py", 
line 5, in 
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py", 
line 40, in 

    from pip._internal.cli.autocompletion import autocomplete
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py", 
line 8, in 

    from pip._internal.cli.main_parser import create_main_parser
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py", 
line 7, in 

    from pip._internal.cli import cmdoptions
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py", 
line 24, in 

    from pip._internal.models.search_scope import SearchScope
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py", 
line 11, in 
    from pip._internal.utils.misc import normalize_path, 
redact_password_from_url
  File 
"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py", 
line 31, in 

*from pip import __version__ *
*ImportError: cannot import name '__version__' from 'pip' 
(c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)*


I tried to run Repair in Modify Setup and reinstalled python as well 
but nothing changed.


I was wondering if you can help to fix this.

Thank you

Simone 

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


Re: "pip" error message

2020-04-21 Thread Simone Bravin

Hi all,

First of all thanks to all that answered my question.

I had already changed the PATH and tried to upgrade pip version but it 
was not possible to reach pip in any way,

the error that I was getting looked like regarding some program file of pip.

Anyway after some trying I was able to fix the problem.

I found that I had downloaded Python from what I would call "automatic 
check version link" and that downloaded the 32-bit version, but my 
notebook have 64-bit, so I changed the version to the 64-bit one.


Pip was reachable but I was getting a problem with it again anyway was 
an easiest fix as I had to take off the -32 from \Python38-32\ in PATH 
variables, like this: 
C:\Users\simon\AppData\Local\Programs\Python\Python38\Scripts


Bye


On 21/04/2020 04:47, Souvik Dutta wrote:
Have you tried updating pip? There was a bug in pip version 
10


Souvik flutter dev

On Mon, Apr 20, 2020, 10:10 PM Simone Bravin 
mailto:simone.bra...@outlook.com>> wrote:


Hello everyone,

> I just started using Python to learn a bit of coding, so I'm
pretty a
> newbie to this, I tried to install few extra packages using pip
but it
> doesn't work.
>
> When I check for pip version using command line> pip --version I
get
> the following error message:
>
> Traceback (most recent call last):
>   File
>
"c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py",

> line 193, in _run_module_as_main
>     return _run_code(code, main_globals, None,
>   File
>
"c:\users\simon\appdata\local\programs\python\python38-32\lib\runpy.py",

> line 86, in _run_code
>     exec(code, run_globals)
>   File
>

"C:\Users\simon\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe\__main__.py",

> line 5, in 
>   File
>

"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\__init__.py",

> line 40, in 
>     from pip._internal.cli.autocompletion import autocomplete
>   File
>

"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\autocompletion.py",

> line 8, in 
>     from pip._internal.cli.main_parser import create_main_parser
>   File
>

"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main_parser.py",

> line 7, in 
>     from pip._internal.cli import cmdoptions
>   File
>

"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\cmdoptions.py",

> line 24, in 
>     from pip._internal.models.search_scope import SearchScope
>   File
>

"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\models\search_scope.py",

> line 11, in 
>     from pip._internal.utils.misc import normalize_path,
> redact_password_from_url
>   File
>

"c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\misc.py",

> line 31, in 
> *from pip import __version__ *
> *ImportError: cannot import name '__version__' from 'pip'
>

(c:\users\simon\appdata\local\programs\python\python38-32\lib\site-packages\pip\__init__.py)*
>
> I tried to run Repair in Modify Setup and reinstalled python as
well
> but nothing changed.
>
> I was wondering if you can help to fix this.
>
> Thank you
>
> Simone
-- 
https://mail.python.org/mailman/listinfo/python-list



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


Re: Best IDE for Python

2006-08-17 Thread Simone Murdock
On 14 Aug 2006 15:04:41 -0700, "Tryker" <[EMAIL PROTECTED]> wrote:

>Gotta love PyScripter. Light, easy to use, free.
>http://mmm-experts.com/Products.aspx?ProductID=4

I agree: I'm trying it only from 4 days the beta version 1.6 and it's
good (some little problems, normal for a beta version, that I'll write
them).

Simon
___
 
Sperm: To be fastest doesn't imply that you are smartest.
   ( by Enrique Herranz )
-- 
http://mail.python.org/mailman/listinfo/python-list


Looking for Conferences/Events on Django, Python, MySQL, etc in Europe 2008?

2008-04-08 Thread Simone Brunozzi
Greetings!

I'm looking for conferences or events about Python, Django, Dabatases,
Mysql,
PHP, Ruby in Europe (or nearby locations like north africa and middle
east) in 2008.
Do you have any suggestions?

Thanks a lot!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Looking for Conferences/Events on Django, Python, MySQL, etc in Europe 2008?

2008-04-08 Thread Simone Brunozzi
On Apr 8, 12:36 pm, "Simon Brunning" <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 8, 2008 at 10:10 AM, Simone Brunozzi
>
> <[EMAIL PROTECTED]> wrote:
> > Greetings!
>
> >  I'm looking for conferences or events about Python, Django, Dabatases,
> >  Mysql,
> >  PHP, Ruby in Europe (or nearby locations like north africa and middle
> >  east) in 2008.
> >  Do you have any suggestions?
>
> PyCon UK 2008 - 12th to 14th September 2008 - <http://www.pyconuk.org/>.
>
> --
> Cheers,
> Simon B.
> [EMAIL PROTECTED]://www.brunningonline.net/simon/blog/

Thanks a lot!
-- 
http://mail.python.org/mailman/listinfo/python-list