Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Demosthenes Koptsis
i answered my own question. On 11/07/2016 11:44 AM, Demosthenes Koptsis wrote: because there is no window open and quits by default. You have to do two things: 1) Make sure that your SystemTray class has parent a QWidget w = QtGui.QWidget() trayIcon = SystemTrayIcon(QtGui.QIcon

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Demosthenes Koptsis
sys.exit(app.exec_()) if __name__ == '__main__': main() On 11/07/2016 10:49 AM, Anssi Saari wrote: Demosthenes Koptsis <demosthen...@gmail.com> writes: Hello, i have a PyQT systray app with a menu and two actions. Action1 is Exit and action2 display a MessageBox with Hello World

[New Release] PyFTPD - an FTP server with GUI and CLI versions

2016-11-01 Thread Demosthenes Koptsis
Hello, i have just released the brand new FTP server based on pyftpdlib, named PyFTPD. You can run it from CLI with PyFTPD-cli.py or if you like GUIs run the PyFTPD.py It is written on PyQT4 and Python 2.7.12 More at https://github.com/demosthenesk/PyFTPD Regards, Dim --

Re: How to execute "gksudo umount VirtualDVD"

2016-10-28 Thread Demosthenes Koptsis
via Python-list wrote: On Fri, 28 Oct 2016 17:19:17 -0500, Wildman wrote: On Fri, 28 Oct 2016 11:05:17 +0300, Demosthenes Koptsis wrote: Yes it was pasted wrong... def umount(self): '''unmounts VirtualDVD''' cmd = 'gksudo umount VirtualDVD' proc = subproc

Re: How to execute "gksudo umount VirtualDVD"

2016-10-28 Thread Demosthenes Koptsis
cmd = 'gksudo umount ' + vpath proc = subprocess.Popen(str(cmd), shell=True, stdout=subprocess.PIPE).stdout.read() print proc On 10/28/2016 11:05 AM, Demosthenes Koptsis wrote: Yes it was pasted wrong... def umount(self): '''unmounts VirtualDVD''' cmd

Re: How to execute "gksudo umount VirtualDVD"

2016-10-28 Thread Demosthenes Koptsis
input the password. But the umount does nothing. I keep have mounted the VirtualDVD folder. On 10/28/2016 12:54 AM, Ian Kelly wrote: On Thu, Oct 27, 2016 at 3:30 PM, Demosthenes Koptsis <demosthen...@gmail.com> wrote: I want to execute the command "gksudo umount VirtualDV

How to execute "gksudo umount VirtualDVD"

2016-10-27 Thread Demosthenes Koptsis
I want to execute the command "gksudo umount VirtualDVD" My code is this but it fails: def umount(self): '''unmounts VirtualDVD''' cmd ='gksudo umount VirtualDVD' proc = subprocess.Popen(str(cmd),shell=True,stdout=subprocess.PIPE).stdout.read() print proc It pops up the gksudo dialog,

[PyQT] After MessageBox app quits...why?

2016-10-27 Thread Demosthenes Koptsis
Hello, i have a PyQT systray app with a menu and two actions. Action1 is Exit and action2 display a MessageBox with Hello World message. When i click OK to MessageBox app quits...why? http://pastebin.com/bVA49k1C -- https://mail.python.org/mailman/listinfo/python-list

Re: How to use two threads (GUI and backend)

2016-10-27 Thread Demosthenes Koptsis
Here is an example about threads and PyQT https://www.youtube.com/watch?v=ivcxZSHL7jM=2 On 10/27/2016 01:22 PM, pozz wrote: Il 26/10/2016 16:18, jmp ha scritto: On 10/26/2016 02:45 PM, pozz wrote: Il 26/10/2016 13:16, jmp ha scritto: [...] I suggest you write a GUI that make synchronous

Re: [FAQ] "Best" GUI toolkit for python

2016-10-19 Thread Demosthenes Koptsis
I have the book already. Thank you Michael Regards, Dim On 10/20/2016 01:30 AM, Michael Torrie wrote: On 10/19/2016 01:13 PM, Demosthenes Koptsis wrote: Did you suggest PySide than PyQt...? Only that I'm using it right now, but I'm making sure my code will run with PyQt. I don't see

Re: [FAQ] "Best" GUI toolkit for python

2016-10-19 Thread Demosthenes Koptsis
Thanks Michael, now i have a clear look about Py GUIs. Did you suggest PySide than PyQt...? I want to start with a Python Qt Framework. On 10/19/2016 09:43 PM, Michael Torrie wrote: On 10/19/2016 12:18 PM, Demosthenes Koptsis wrote: I thought PyQt was supported by Qt company... I don't

Re: [FAQ] "Best" GUI toolkit for python

2016-10-19 Thread Demosthenes Koptsis
=1476901015=8-1=rapid+qt+python Inside the book the apps are been developed in PyQt Regards, Dim On 10/19/2016 03:49 PM, Mark Summerfield wrote: On Tuesday, October 18, 2016 at 9:09:46 PM UTC+1, Demosthenes Koptsis wrote: My favorite GUIs are PyQt and wxPython. I prefer PyQt than PySide because

Re: [FAQ] "Best" GUI toolkit for python

2016-10-18 Thread Demosthenes Koptsis
I have no experience of GTK On 10/19/2016 12:23 AM, pozz wrote: Il 18/10/2016 18:41, Demosthenes Koptsis ha scritto: > My favorite GUIs are PyQt and wxPython. > > I prefer PyQt than PySide because PySide seem to me like an abandoned > project. > > Also i prefer PyQt than wxPy

Re: [FAQ] "Best" GUI toolkit for python

2016-10-18 Thread Demosthenes Koptsis
My favorite GUIs are PyQt and wxPython. I prefer PyQt than PySide because PySide seem to me like an abandoned project. Also i prefer PyQt than wxPython because i can design the forms in QtDesigner easily. wxPython and wxWidgets do not have a GUI designer competitor to QtDesigner. So, my