Re: Tkinter spacing

2016-01-26 Thread Christian Gollwitzer
Am 26.01.16 um 23:48 schrieb high5stor...@gmail.com: On Monday, January 25, 2016 at 7:41:57 PM UTC-8, KP wrote: > [fullquote snipped] Ah - that clears it up. Thanks for your help! It is totally unclear what you reply to. PLease cite what you refer to, and shorten your citation for clarity.

Re: Tkinter spacing

2016-01-26 Thread Christian Gollwitzer
Am 26.01.16 um 04:41 schrieb KP: If I want to have some space between, say, btn_last & btn_new, will I have to use a dummy label in between these two or is there a better way? If you just want to put space there, you can use the pad options of grid, just like you do for lbl_Recs. Specifically

Re: Python Unit test

2016-01-26 Thread toluagboola
On Tuesday, January 26, 2016 at 10:57:51 PM UTC+2, 4ndre4 wrote: > On 26/01/2016 11:09, toluagbo...@gmail.com wrote: > > [...] > > I'm a University student of IT with majors in Embedded Systems. > > I have this assignment where I have to write Unittest for a simple > Python Code > > without hav

Re: Question about asyncio and blocking operations

2016-01-26 Thread Alberto Berti
> "Alberto" == Alberto Berti writes: Alberto> async external_coro(): # this is the calling context, which is a coro Alberto> async with transction.begin(): Alberto> o = MyObject Alberto> # maybe other stuff ops... here it is "o = MyObject

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Ben Finney
Gene Heskett writes: > I have need of using a script written for python3, but the default > python on wheezy is 2.7.3. Correction: the default Python 2 is 2.7.3. The default Python 3 is 3.2.3. Since Python 2 and Python 3 are distinct run-time systems, there's no single “default Python” in Debia

Re: Question about asyncio and blocking operations

2016-01-26 Thread Alberto Berti
> "Frank" == Frank Millman writes: Frank> Now I have another problem. I have some classes which retrieve some Frank> data from the database during their __init__() method. I find that it Frank> is not allowed to call a coroutine from __init__(), and it is not Frank> allowed to

Re: Tkinter spacing

2016-01-26 Thread high5storage
On Monday, January 25, 2016 at 7:41:57 PM UTC-8, KP wrote: > If I want to have some space between, say, btn_last & btn_new, will I have to > use a dummy label in between these two or is there a better way? > > Thanks for any help, as always! > > > > > from tkinter import * > from tkinter impo

Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with "Permission denied" error (Python 2.7.11 on Win XP SP3);

2016-01-26 Thread eryk sun
On Sun, Jan 24, 2016 at 7:27 PM, Terry Reedy wrote: > > More specifically, / is not accepted in paths to be executed. It seems to be > generally accepted in path arguments, as in cd path, or > > C:\Users\Terry>C:\programs\python35\python.exe C:/programs/python34/tem.py An exception that comes to

Re: Python Unit test

2016-01-26 Thread 4ndre4
On 26/01/2016 11:09, toluagbo...@gmail.com wrote: [...] I'm a University student of IT with majors in Embedded Systems. > I have this assignment where I have to write Unittest for a simple Python Code > without having prior knowledge of Python. I really need some help. www.python.org to get a

Re: Which Python editor has this feature?

2016-01-26 Thread Fabio Zadrozny
On Mon, Jan 11, 2016 at 6:40 AM, Gordon Levi wrote: > jf...@ms4.hinet.net wrote: > > >It lets you jump between the current cursor position and the line the > upper level indentation start, something like the bracket matching in C > editor. Because of Python use indentation as its code block mark,

Re: Which Python editor has this feature?

2016-01-26 Thread Fabio Zadrozny
On Sun, Jan 10, 2016 at 11:59 PM, wrote: > It lets you jump between the current cursor position and the line the > upper level indentation start, something like the bracket matching in C > editor. Because of Python use indentation as its code block mark, It might > be helpful if we can jump betwe

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Gene Heskett
On Tuesday 26 January 2016 10:21:07 Chris Angelico wrote: > On Wed, Jan 27, 2016 at 2:11 AM, Gene Heskett wrote: > > On Tuesday 26 January 2016 09:20:16 Wolfgang Maier wrote: > >> I have used 2.7 and 3.2 side-by-side for two years or so on Ubuntu > >> 12.04. Never encountered any problem except

Re: show instant data on webpage

2016-01-26 Thread mustang
open("myData.dat", "w").close() while True: temp = sensor.readTempC() riga = "%f\n" % temp with open("myData.dat", "a") as f: f.write(riga) time.sleep(1) yes great it works!thanks a lot! Anyway to refresh temperature I've to recall anytime the php page. My idea is

Re: Tkinter spacing

2016-01-26 Thread Peter Otten
high5stor...@gmail.com wrote: >> from tkinter import * >> from tkinter import ttk >> >> root = Tk() >> root.geometry("822x600+100+100") >> nav_bar = ttk.Frame(root, borderwidth=2, relief='ridge', padding=(10, 3, >> 10, 3)) >> >> btn_first = ttk.Button(nav_bar, text='|<', width=4) # for buttons

Re: show instant data on webpage

2016-01-26 Thread David Palao
2016-01-26 17:10 GMT+01:00 mustang : > I've built a sensor to measure some values. > I would like to show it on a web page with python. > > > This is an extract of the code: > > file = open("myData.dat", "w") > > while True: > temp = sensor.readTempC() > riga = "%f\n" % temp >

show instant data on webpage

2016-01-26 Thread mustang
I've built a sensor to measure some values. I would like to show it on a web page with python. This is an extract of the code: file = open("myData.dat", "w") while True: temp = sensor.readTempC() riga = "%f\n" % temp file.write(riga) time.sleep(1.0) file.close

Re: Python Unit test

2016-01-26 Thread David Palao
2016-01-26 16:56 GMT+01:00 Joel Goldstick : > On Tue, Jan 26, 2016 at 10:48 AM, Tolu Agboola > wrote: > >> I'll go with number 2. I don't know how to apply the ideas to the code I >> have. >> >> Sent from my iPhone >> >> > On 26 Jan 2016, at 15:48, David Palao wrote: >> > >> > Well, there is a ve

Re: Tkinter spacing

2016-01-26 Thread high5storage
On Monday, January 25, 2016 at 7:41:57 PM UTC-8, KP wrote: > If I want to have some space between, say, btn_last & btn_new, will I have to > use a dummy label in between these two or is there a better way? > > Thanks for any help, as always! > > > > > from tkinter import * > from tkinter impo

Re: Python Unit test

2016-01-26 Thread Joel Goldstick
On Tue, Jan 26, 2016 at 10:48 AM, Tolu Agboola wrote: > I'll go with number 2. I don't know how to apply the ideas to the code I > have. > > Sent from my iPhone > > > On 26 Jan 2016, at 15:48, David Palao wrote: > > > > Well, there is a very specific example in there. > > But you still don't giv

Re: Question about asyncio and blocking operations

2016-01-26 Thread Ian Kelly
On Tue, Jan 26, 2016 at 7:15 AM, Frank Millman wrote: > I am making some progress, but I have found a snag - possibly unavoidable, > but worth a mention. > > Usually when I retrieve rows from a database I iterate over the cursor - > >def get_rows(sql, params): >cur.execute(sql, params)

Re: Python Unit test

2016-01-26 Thread Tolu Agboola
I'll go with number 2. I don't know how to apply the ideas to the code I have. Sent from my iPhone > On 26 Jan 2016, at 15:48, David Palao wrote: > > Well, there is a very specific example in there. > But you still don't give us much information about *concrete* troubles you > have. > I *gues

thanks

2016-01-26 Thread Kawuma Julius
Thank you for developing us.We love you God bless you the more. I am Julius in Uganda learning computer. -- https://mail.python.org/mailman/listinfo/python-list

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Chris Angelico
On Wed, Jan 27, 2016 at 2:11 AM, Gene Heskett wrote: > On Tuesday 26 January 2016 09:20:16 Wolfgang Maier wrote: > >> I have used 2.7 and 3.2 side-by-side for two years or so on Ubuntu >> 12.04. Never encountered any problem except for a few times that I >> accidentally tried to run something with

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Gene Heskett
On Tuesday 26 January 2016 09:20:16 Wolfgang Maier wrote: > I have used 2.7 and 3.2 side-by-side for two years or so on Ubuntu > 12.04. Never encountered any problem except for a few times that I > accidentally tried to run something with python when I should have > used python3. I think thats un

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Wolfgang Maier
On 26.01.2016 15:34, Matt Wheeler wrote: The only slight issue you might encounter is that Python 3.2 is quite old now and actually not as well supported as Python 2.7 (many projects support Python 2.7 or 3.3+ only). Best to just try out your script and find out though. Right. For example, pi

Re: Question about asyncio and blocking operations

2016-01-26 Thread Frank Millman
"Frank Millman" wrote in message news:n8038j$575$1...@ger.gmane.org... I am developing a typical accounting/business application which involves a front-end allowing clients to access the system, a back-end connecting to a database, and a middle layer that glues it all together. [...] The

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Nick Sarbicki
On Tue, Jan 26, 2016 at 2:22 PM David Palao wrote: > Hello, > On my system I have 2.7.10 and 3.4.3 system wide, but it is not > debian. Of course, the "python" executable can be only one of them at > a given time. > Another option is tu use a virtual environment or something (pyvenv or > virtuale

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Matt Wheeler
On 26 January 2016 at 12:26, Gene Heskett wrote: > Greetings; > > I have need of using a script written for python3, but the default python > on wheezy is 2.7.3. > > I see in the wheezy repos that 3.2.3-6 is available. > > Can/will they co-exist peacefully? Yes, python packages for different mino

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Grobu
On 26/01/16 13:26, Gene Heskett wrote: Greetings; I have need of using a script written for python3, but the default python on wheezy is 2.7.3. I see in the wheezy repos that 3.2.3-6 is available. Can/will they co-exist peacefully? Thank you. Cheers, Gene Heskett On Debian Jessie : $ ls

Re: Python Unit test

2016-01-26 Thread Bernardo Sulzbach
Or maybe he doesn't know enough about unit testing. If that is the case, Wikipedia and SO should have you covered. Amazon has a few books on the subject, too. -- https://mail.python.org/mailman/listinfo/python-list

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread David Palao
Hello, On my system I have 2.7.10 and 3.4.3 system wide, but it is not debian. Of course, the "python" executable can be only one of them at a given time. Another option is tu use a virtual environment or something (pyvenv or virtualenv). Best 2016-01-26 13:26 GMT+01:00 Gene Heskett : > Greeting

Re: python-2.7.3 vs python-3.2.3

2016-01-26 Thread Wolfgang Maier
I have used 2.7 and 3.2 side-by-side for two years or so on Ubuntu 12.04. Never encountered any problem except for a few times that I accidentally tried to run something with python when I should have used python3. Cheers, Wolfgang On 26.01.2016 13:26, Gene Heskett wrote: Greetings; I have

Re: Python Unit test

2016-01-26 Thread David Palao
Well, there is a very specific example in there. But you still don't give us much information about *concrete* troubles you have. I *guess* that one of the following is true: 1) You have problems to understand some part of the example in the unittest module documentation. 2) You don't know how to a

python-2.7.3 vs python-3.2.3

2016-01-26 Thread Gene Heskett
Greetings; I have need of using a script written for python3, but the default python on wheezy is 2.7.3. I see in the wheezy repos that 3.2.3-6 is available. Can/will they co-exist peacefully? Thank you. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, b

Re: Python Unit test

2016-01-26 Thread toluagboola
Yes I have studied the page but it's quite vague to me. So we have this project - Development of a touch screen controllable IEC61850 standard protocol analyzer. With this analyzer user can monitor and analyze network traffic in substation network. -- https://mail.python.org/mailman/listinfo/py

Re: Python Unit test

2016-01-26 Thread David Palao
Hello, It would be good to provide more details on what you need help for. For instance, have you read the manual https://docs.python.org/3/library/unittest.html ? It even contains a couple of examples. Best 2016-01-26 12:09 GMT+01:00 : > I'm a University student of IT with majors in Embedded Sy

Python Unit test

2016-01-26 Thread toluagboola
I'm a University student of IT with majors in Embedded Systems. I have this assignment where I have to write Unittest for a simple Python Code without having prior knowledge of Python. I really need some help. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter spacing

2016-01-26 Thread Peter Otten
KP wrote: > If I want to have some space between, say, btn_last & btn_new, will I have > to use a dummy label in between these two or is there a better way? > > Thanks for any help, as always! You could use nested frames with nonzero padding, e. g: nav_bar = ttk.Frame(root, borderwidth=2, relie