Re: import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
On Mon, 2013-09-16 at 11:14 +0430, Mohsen Pahlevanzadeh wrote: > On Mon, 2013-09-16 at 02:56 +, Steven D'Aprano wrote: > > On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > > > > > Dear all, > > > > > > i have the following two line codes: > > > >

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Ferrous Cranus
Στις 16/9/2013 4:52 πμ, ο/η Steven D'Aprano έγραψε: Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you give evidence of caring about the questions y

Re: import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
On Mon, 2013-09-16 at 02:56 +, Steven D'Aprano wrote: > On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > > i have the following two line codes: > > > > import ui.interface.interface > > obj = ui.interface.inter

Re: better and user friendly IDE recommended?

2013-09-15 Thread Joshua Landau
On 12 September 2013 16:47, Paul Rudin wrote: > Joshua Landau writes: > >> If the time learning a set of tools is enough to make the choice >> between tools, I suggest avoiding, say, Vim. > > That's a big if. > > If you expect to spend a lot of time editing text, code, etc. over the > next few ye

Re: import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
thank you, you gave me "how to get fish" instead of "fish", it's very better. On Mon, 2013-09-16 at 02:56 +, Steven D'Aprano wrote: > On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > > i have the following two line codes: > > >

Re: import problem

2013-09-15 Thread Steven D'Aprano
On Mon, 16 Sep 2013 06:53:26 +0430, Mohsen Pahlevanzadeh wrote: > Dear all, > > i have the following two line codes: > > import ui.interface.interface > obj = ui.interface.interface.InterfaceCodes() > ###333 > I have same code in a

Re: better and user friendly IDE recommended?

2013-09-15 Thread EricF
In article , memilanuk wrote: >On 09/12/2013 02:15 PM, Adrián Espinosa wrote: > >> I suggest you to use IntelliJ IDEA. It has a plugin for Python and Django > (web framework). It works flawlessly. >> > >If one were inclined to go that route, wouldn't PyCharm typically be a >better choice? > If y

import problem

2013-09-15 Thread Mohsen Pahlevanzadeh
Dear all, i have the following two line codes: import ui.interface.interface obj = ui.interface.interface.InterfaceCodes() ###333 I have same code in another package and work fine. but i get the : ##

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Steven D'Aprano
Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you give evidence of caring about the questions you ask, I'll start caring about the answers I give

Re: Easiest way to get exit code from os.popen()?

2013-09-15 Thread 0x7f494e
четверг, 25 октября 2007 г., 1:12:31 UTC+5 пользователь Jean-Paul Calderone написал: > On Wed, 24 Oct 2007 19:07:44 -, mrstephengross > wrote: > >Hi folks. I'm using os.popen() to run a command; according to the > >documentation, the filehandle.close() oepration is suppsoed to return > >the

Re: Python GUI?

2013-09-15 Thread Dave Cook
On 2013-09-14, Wolfgang Keller wrote: > If much of the code for a GUI is boiler-plate, busy-code etc. than I > would suggest that the framework is not really as efficient as it > should be. There are very few Python GUI frameworks as such. They are almost all just toolkits, not frameworks in th

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Joel Goldstick
On Sun, Sep 15, 2013 at 5:31 PM, Chris Angelico wrote: > On Mon, Sep 16, 2013 at 1:54 AM, Ferrous Cranus > wrote: > > Since all looks okey why the mail never gets delivered? > > This is not a Python question. If it were, I would be asking how > you're getting _anywhere_ with that code, which app

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Chris Angelico
On Mon, Sep 16, 2013 at 1:54 AM, Ferrous Cranus wrote: > Since all looks okey why the mail never gets delivered? This is not a Python question. If it were, I would be asking how you're getting _anywhere_ with that code, which appears to have IndentationErrors in it. You're also using os.system()

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread SuperHost - Nikos
Στις 15/9/2013 9:59 μμ, ο/η Joost Molenaar έγραψε: Also, the reverse DNS for 84.200.17.58 does not resolve to secure.superhost.gr, which could also be reason to reject the message. How can i fix this please? -- https://mail.python.org/mailman/listinfo/python-list

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Joost Molenaar
Since the From address is random, it most likely doesn't exist, which could be reason for Google's smtp server to reject the message or to deliver it to spam. Also, the reverse DNS for 84.200.17.58 does not resolve to secure.superhost.gr, which could also be reason to reject the message. On Sun,

Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Ferrous Cranus
try: # prepare mail data FROM = random_char(10) + '@' + random_char(10) + '.com' TO = "nikos.gr...@gmail.com" SUBJECT = random_char( 50 ) MESSAGE = random_char( 500 ) os.system( "echo %s | mailx -v -r %s -s %s %s" %

Re: How to get time (milisecond) of a python IO execution

2013-09-15 Thread Dave Angel
On 14/9/2013 22:59, Tal Bar-Or wrote: > Hi All > > i am trying to test measure some IO execution in milliseconds , but bit > confuse about best method achive that under windows 7 Measuring any performance can be tricky, and I/O in particular. Windows will cache the recently used file informatio

Re: How to get time (milisecond) of a python IO execution

2013-09-15 Thread Skip Montanaro
I'm not familiar with how Windows works, but I wouldn't be surprised if it caches directory information. (Unix systems certainly would.) You probably aren't really doing much actual I/O to get the size of a file after the first run. Also, you probably want to subtract the time it takes to execute a

Re: How to differ between checked and unckecked

2013-09-15 Thread Vincent Vande Vyvre
Le 15/09/2013 09:34, Mohsen Pahlevanzadeh a écrit : Dear all, My program have a set of checkbox, When user check a checkbox, i should call slot1() and when user uncheck checkbox, i should call slot2(),But i can't understand when user checks and unchecked. My questions is, How can i find out

Re: Get the selected tab in a enthought traits application

2013-09-15 Thread shi
Any ideas? I think you will have more chance for an answer in a more specialized list, e.g. the enthought-dev mailing list, which is also accessible via gmane: http:// dir.gmane.org / gmane.comp.python.enthought.devel Stefaan. -- https://mail.python.org/mailman/listinfo/python-list

Re: Language design

2013-09-15 Thread Antoon Pardon
Op 15-09-13 04:37, Mark Janssen schreef: Ha, "only the direction reversed". That little directionality that you're passing by so blithely is the difference between whether you're talking about galaxies or atoms. It makes no difference whether I write: atoms -> stars -> galaxies or

How to differ between checked and unckecked

2013-09-15 Thread Mohsen Pahlevanzadeh
Dear all, My program have a set of checkbox, When user check a checkbox, i should call slot1() and when user uncheck checkbox, i should call slot2(),But i can't understand when user checks and unchecked. My questions is, How can i find out user check and unchecked checkbox? It's very important