Re: HELP! How to return the returned value from a threaded function

2015-04-19 Thread D. Xenakis
This worked like a charm. http://code.activestate.com/recipes/84317-easy-threading-with-futures/ -- https://mail.python.org/mailman/listinfo/python-list

Re: HELP! How to return the returned value from a threaded function

2015-04-18 Thread D. Xenakis
This sounds like homework... what have you tried, and what happened? heheh naaah no cheating here. I just provided the example this way to make as clear as possible what I want to do. Return the returned value from a threaded function. apparently this does not work as I hoped: return

HELP! How to return the returned value from a threaded function

2015-04-18 Thread D. Xenakis
Maybe this is pretty simple but seems I am stuck... def message_function(): return HelloWorld! def thread_maker(): call message_function() using a new thread and return it's HelloWorld! pass Could someone please complete above script so that: thread_maker() ==

Examples of modern GUI python programms

2014-03-30 Thread D. Xenakis
Id like to ask.. do you know any modern looking GUI examples of windows software written in python? Something like this maybe: http://techreport.com/r.x/asus-x79deluxe/software-oc.jpg (or hopefully something like this android look:

What does sys.stdout.flush() do?

2013-08-23 Thread D. Xenakis
Somewhere i read.. sys.stdout.flush(): Flush on a file object pushes out all the data that has been buffered to that point. Can someone post here a script example with sys.stdout.flush(), where in case i commented that i could understand what the difference really would be? Whenever i try to

Re: log incoming ip/porrt connections

2013-08-18 Thread D. Xenakis
This monitors also ip/port of incoming udp packets? Or just tcp after a connection has been enstablished? If i dont make any sense, plz correct me. Not much experience with networking here :) -- http://mail.python.org/mailman/listinfo/python-list

log incoming ip/porrt connections

2013-08-17 Thread D. Xenakis
Hi there. I have a script-service running on a remote server, listening on a specific port. What i need here is to make this also maintain a log file of ALL incoming connections. Could someone suggest to me a simple codefunction example to implement that on my main running service? THX!! --

Re: log incoming ip/porrt connections

2013-08-17 Thread D. Xenakis
Or point me the right way in case this is not that simple to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 and SSH Tunnel

2013-08-10 Thread D. Xenakis
What about the security though? To be specific, i need to create an application (python 3.3 strictly) where users will save/load their settings online to a remote hosted database. I do not wish to change the database from listening to any other thing than localhost for security reasons, so i

Python 3.3 + QtSql + ssh tunnel - Connection problem

2013-08-10 Thread D. Xenakis
Im using python 3.3 on win7 64bit and trying to connect to a MySQL database on a remote server through a putty ssh tunnel. Running the script below im getting Physical connection to the database did not activate!. What im i doing wrong?! I tried to find a working example but couldnt find one.

paramiko installation problem

2013-08-08 Thread D. Xenakis
Im having problems using paramiko after installation on my Win7 64bit system. I can see both paramiko and pycrypto being there installed via pip list: I have tried so many different ways but in the end im always getting the same error when trying to import paramiko: (i can import Crypto with no

Re: paramiko installation problem

2013-08-08 Thread D. Xenakis
import sys print (sys.path) returns: ['C:\\Python33\\Lib\\idlelib', 'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg', 'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages'] then if i type:

Re: paramiko installation problem

2013-08-08 Thread D. Xenakis
Wow thats bad news. Any workaround? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . Any thoughts? --

Python 3 and SSH Tunnel

2013-08-08 Thread D. Xenakis
HOWTO anyone? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . I contacted my host and he informed me that this is the only way. I tried

Re: Python 3 and SSH Tunnel

2013-08-08 Thread D. Xenakis
HOWTO anyone? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . I contacted my host and he informed me that this is the

Re: Python 3 and SSH Tunnel

2013-08-08 Thread D. Xenakis
Alternatively, can you use PostgreSQL instead? :) Yes there is such an option to be honest. Would that be helpfull instead of MySQL? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt5 and virtualenv problem

2013-08-01 Thread D. Xenakis
Any advice?Plz? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt5 and virtualenv problem

2013-07-29 Thread D. Xenakis
Answer here: http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt5 and virtualenv problem

2013-07-29 Thread D. Xenakis
Could you help me install PyQt5 properly in my Virtualenv folder and not only globally? I tried installing PyQt5 and sip with the use of pip but i was getting errors all the time (Why is that? Are there any known pip issues along with PyQt5 and sip?), so in the end i had to install it with the

PyQt5 and virtualenv problem

2013-07-27 Thread D. Xenakis
I tried to install SIP and PyQt5 using the pip install command but it didnt work on both cases (i was getting errors), so i finally installed them using the windows installers provided in riverbankcomputing website. My problem though here is that whenever i try to create a new virtualenv

Re: virtualenv problem

2013-07-26 Thread D. Xenakis
Yeah trying to run virtualenv under IDLE was a desperate move as i couldnt make anything work under cmd. Apparently my problem was that i did not have correctly setup the new path.. Solution for me was the following from

virtualenv problem

2013-07-25 Thread D. Xenakis
Hi there. Im using windows 7 64bit I have installed python 3.3.2 in C:\Python33 and then easy_install , pip, and virtualenv. But i do not know if the virtualenv installation is correct as i cant seem to be able to create any virtual enviroment yet. How can i check if everything is correct? What

Make python 3.3 the default one and not 2.7

2013-04-03 Thread D. Xenakis
Hi there, i installed python 2.7 (windows 32bit version) from http://www.enthought.com/products/epd_free.php and after that i installed official 3.3 version too. So now i got two python folders like this.. c:/Python27 and c:/Python33 . My problem is that when im trying to execute a .py file,

Re: Make python 3.3 the default one and not 2.7

2013-04-03 Thread D. Xenakis
I tried to reinstall python 3.3 but there was not change :(. I selected to run all component from my PC. I'll give it a try with those registries. -- http://mail.python.org/mailman/listinfo/python-list

Re: Make python 3.3 the default one and not 2.7

2013-04-03 Thread D. Xenakis
Τη Τετάρτη, 3 Απριλίου 2013 12:43:43 μ.μ. UTC+3, ο χρήστης Wolfgang Maier έγραψε: D. Xenakis gouzounakis at hotmail.com writes: Hi there, i installed python 2.7 (windows 32bit version) from http://www.enthought.com/products/epd_free.php and after that i installed official

Re: Make python 3.3 the default one and not 2.7

2013-04-03 Thread D. Xenakis
thx solved -- http://mail.python.org/mailman/listinfo/python-list

Help installing latest PyQT

2013-04-02 Thread D. Xenakis
Hi there im trying to install PyQT (version PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i have installed everything correctly. I tried to find documentation about this but most links were very dead.. So far so good.. i have: 1)Downloaded and installed Python 3.3.0

Re: Help installing latest PyQT

2013-04-02 Thread D. Xenakis
Τη Τρίτη, 2 Απριλίου 2013 6:39:07 μ.μ. UTC+3, ο χρήστης D. Xenakis έγραψε: Hi there im trying to install PyQT (version PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i have installed everything correctly. I tried to find documentation about this but most links were

Re: Help installing latest PyQT

2013-04-02 Thread D. Xenakis
I had also installed in the past python 2.7 . Now when im trying to run a .py, interpreter 2.7 is always being called.. (also when im right clicking and sellecting to run in IDLE, 2.7 is agai n starting instead of 3.3) so PyQt4 is crashing. Any tip to make 3.3 the default interpreter plz? --

Re: Help installing latest PyQT

2013-04-02 Thread D. Xenakis
Τη Τρίτη, 2 Απριλίου 2013 10:44:43 μ.μ. UTC+3, ο χρήστης Sibylle Koczian έγραψε: Am 02.04.2013 18:10, schrieb David Robinow: 3)Downloaded and installed PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe from http://www.riverbankcomputing.com/software/pyqt/download , here:

Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread D. Xenakis
Τη Τετάρτη, 20 Μαρτίου 2013 2:55:22 π.μ. UTC+2, ο χρήστης Terry Reedy έγραψε: On 3/19/2013 8:12 PM, D. Xenakis wrote: Hi there, Im searching for an installation guide for PyQt toolkit. To be honest im very confused about what steps should i follow for a complete and clean installation

Help. HOW TO guide for PyQt installation

2013-03-19 Thread D. Xenakis
Hi there, Im searching for an installation guide for PyQt toolkit. To be honest im very confused about what steps should i follow for a complete and clean installation. Should i better choose to install the 32bit or the 64bit windows version? Or maybe both? Any chance one of them is more/less

Re: pyqt4 qt license

2013-03-09 Thread D. Xenakis
Please correct me if im wrong.. PySide is LGPL and is free and by using that someone can develop commercial (and non commercial) software, while being able at the same to choose between both close and open Source. PyQT4 Commercial Licence costs more than 300 Euro and by using that someone can