Re: TKinter Newbie question

2019-01-17 Thread Peter Otten
TUA wrote: > Why does the button frame in the code below not show? > tk.Button(bf, padx = 10, relief = tk.GROOVE, text = 'Help') You forgot to layout it with .pack(). > I intend to have it displayed in between the notebook at the top and the > fake statusbar at the bottom. I think for

Re: python package management confusion

2019-01-17 Thread dieter
dcs3spp via Python-list writes: > ... > How do I configure setuptools to pull my own private dependency package using > virtualenv + python setup.py develop You call "python setup.py develop" for your own package (which the "python" from the virtualenv). This makes your package (more precisely

TKinter Newbie question

2019-01-17 Thread TUA
Why does the button frame in the code below not show? I intend to have it displayed in between the notebook at the top and the fake statusbar at the bottom. Thanks for any help! from tkinter import ttk import tkinter as tk class MainForm(): def __init__(self, master):

Re: Pythonic Y2K

2019-01-17 Thread DL Neil
Back in the computer world, Y2K gave such managers some cover. There was a FIRM deadline. I wonder how many used the impending arrival of the year 2000 as an excuse to perhaps clean up other parts of their act and charge it to prevention. I mean they might suggest they rewrite some legacy COBOL or

Re: oldschool texter GUI with python, char repeating is not working great !

2019-01-17 Thread athanasios . kourpetis
i just uploaded everything on github https://github.com/kourpetis/python_old_school_texter -- https://mail.python.org/mailman/listinfo/python-list

Re: AssertionError without traceback?

2019-01-17 Thread Israel Brewster
> On Jan 14, 2019, at 10:40 PM, dieter wrote: > > Israel Brewster writes: >> I have a flask application deployed on CentOS 7 using Python 3.6.7 and uwsgi >> 2.0.17.1, proxied behind nginx. uwsgi is configured to listed on a socket in >> /tmp. The app uses gevent and the flask_uwsgi_websockets

RE: Pythonic Y2K

2019-01-17 Thread Avi Gross
Ian, You just scared me. It is 2019 which has four digits. In less than 8,000 years we will need to take the fifth to make numbers from 10,000 to 10,999. 90,000 years later we will need a sixth digit and so on. Do you know how many potential Y2K-like anomalies we may have between now and year 292

RE: Pythonic Y2K

2019-01-17 Thread Avi Gross
Well said, Joseph. Unfortunately, many companies are run these days with a view toward the IMMEDIATE bottom line. I mean numbers like revenues or expenses are seen short-term. If a project stops development on new things and spends time redoing old things, there are expenses recorded with no reven

oldschool texter GUI with python, char repeating is not working great !

2019-01-17 Thread athanasios . kourpetis
I have this tkinter GUI of an old school texter that runs on a Raspberry pi 3. I have 16 pressure analog pressure sensors that i am readding them through a multiplexor, and i pass there values to an ADC mcp3002. if the value pass a thresshold i consider it as a key press, and there i need some c

Sarah Guido

2019-01-17 Thread Avi Gross
Perhaps it is not a coincidence that I plucked the mock-suggestion to name a language Guido out of thin air. A book I ordered quite a while ago arrived. "Introduction to Machine Learning with Python: A Guide for Data Scientists" by Andreas C. Müller and <<>> Note the last name is the same Guido

Re: [tkinter] question about correct use of validation

2019-01-17 Thread steve
Il 17/01/19 14:08, Peter Otten ha scritto: Alternatives: - If you know that you'll always just call pack() you can change the make_entry() method accordingly def make_entry(...): ... entry.pack() return entry - Write a helper function def pack(widget): widget.pack()

Re: Pythonic Y2K

2019-01-17 Thread Chris Angelico
On Fri, Jan 18, 2019 at 8:47 AM DL Neil wrote: > > On 17/01/19 6:53 PM, Chris Angelico wrote: > > On Thu, Jan 17, 2019 at 3:55 PM Avi Gross wrote: > >> The forthcoming UNIX 2038 problem will, paradoxically happen on January 19. > >> > > > > Paradoxically? What do you mean by that? > > > First we

Re: Pythonic Y2K

2019-01-17 Thread DL Neil
On 17/01/19 6:53 PM, Chris Angelico wrote: On Thu, Jan 17, 2019 at 3:55 PM Avi Gross wrote: The forthcoming UNIX 2038 problem will, paradoxically happen on January 19. Paradoxically? What do you mean by that? First we had to duck the Y2K problem. By moving everything to 64-bits, we duck t

Re: [tkinter] question about correct use of validation

2019-01-17 Thread Peter Otten
steve wrote: > Il 17/01/19 14:08, Peter Otten ha scritto: > >> Two remarks: >> >>> self.id1_entry = self.make_entry(self.parent, maxlen=1).pack() >> >> You set all idX_entry attributes to None, as that's what pack() returns. > > you mean.. > > self.idx_entry = self.make_entry(self.p

Re: the python name

2019-01-17 Thread Chris Angelico
On Fri, Jan 18, 2019 at 8:33 AM DL Neil wrote: > > On 18/01/19 8:20 AM, Dennis Lee Bieber wrote: > > On Thu, 17 Jan 2019 18:12:33 +1300, Gregory Ewing > > declaimed the following: > > > >> Dennis Lee Bieber wrote: > >>> Getting too close to REXX (which was something like Restructured > >>> EX

Re: the python name

2019-01-17 Thread DL Neil
On 18/01/19 8:20 AM, Dennis Lee Bieber wrote: On Thu, 17 Jan 2019 18:12:33 +1300, Gregory Ewing declaimed the following: Dennis Lee Bieber wrote: Getting too close to REXX (which was something like Restructured EXtended eXecutor). And if we continue the theme of dinosaur evolution,

Re: [tkinter] question about correct use of validation

2019-01-17 Thread steve
Il 17/01/19 14:08, Peter Otten ha scritto: Two remarks: self.id1_entry = self.make_entry(self.parent, maxlen=1).pack() You set all idX_entry attributes to None, as that's what pack() returns. you mean.. self.idx_entry = self.make_entry(self.parent, width=50, maxlen=30, highligh

Re: Pythonic Y2K

2019-01-17 Thread Grant Edwards
On 2019-01-17, Schachner, Joseph wrote: > I'd like to add one more thing to your list of what companies will have to > consider: > > 6) The ability to hire and retain employees who will be happy to >program in an obsolete version of Python. A version about which >new books will probably

Re: Guido (Sarducci)

2019-01-17 Thread Abdur-Rahmaan Janhangeer
haha that list is the best py community par excellence 👍 Abdur-Rahmaan Janhangeer http://www.pythonmembers.club Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: the python name

2019-01-17 Thread DL Neil
On 17/01/19 6:10 PM, Gregory Ewing wrote: Avi Gross wrote: The question that seems to come up too often about the python name is a distraction. In particular, it is answered fairly prominently in many places as just being a nonsensical name because a founder once liked a comedic entity that ch

Re: Pythonic Y2K

2019-01-17 Thread Ian Kelly
On Wed, Jan 16, 2019 at 9:57 PM Avi Gross wrote: > > The forthcoming UNIX 2038 problem will, paradoxically happen on January 19. I wonder what they will do long before then. Will they just add a byte or four or 256 and then make a date measurable in picoseconds? Or will they start using a number f

Re: Pythonic Y2K

2019-01-17 Thread Chris Angelico
On Fri, Jan 18, 2019 at 5:48 AM Schachner, Joseph wrote: > > I'd like to add one more thing to your list of what companies will have to > consider: > > 6) The ability to hire and retain employees who will be happy to program in > an obsolete version of Python. A version about which new books wi

RE: Pythonic Y2K

2019-01-17 Thread Schachner, Joseph
I'd like to add one more thing to your list of what companies will have to consider: 6) The ability to hire and retain employees who will be happy to program in an obsolete version of Python. A version about which new books will probably not be written. A version which new packages will not s

Re: AssertionError without traceback?

2019-01-17 Thread Israel Brewster
--- Israel Brewster Systems Analyst II 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7293 --- [cid:bfa5c323-b100-481d-96b1-fc256ef2eb39@flyravn.com] [cid:8c891973-9e67-47b3-aa14-5f58b9b93607@fly

Re: python package management confusion

2019-01-17 Thread dcs3spp via Python-list
On Thursday, 17 January 2019 07:41:43 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > How do I configure python setup.py develop to pull the pyramid_core > > dependent packages using virtualenv? > > Your "setup.py" below should work (once, you have removed the ""). > If the

Re: [tkinter] question about correct use of validation

2019-01-17 Thread Peter Otten
steve wrote: > Il 16/01/19 08:51, Peter Otten ha scritto: > >> def make_ui(self): >> ''' create user interface ''' >> >> def vcmd(maxlength): >> return self.parent.register( >> partial(self.maxlength_validate, maxlength=maxlength) >>

Re: Guido (Sarducci)

2019-01-17 Thread Jack Dangler
On 1/16/19 9:48 PM, Avi Gross wrote: Dennis, I wish to apologize for introducing any suggestion to name anything as Guido, let alone any language that springs from a python. Yes, it may be a stereotypic Italian name related to what you hint at. You probably recognized it as an allusion to some

Re: [tkinter] question about correct use of validation

2019-01-17 Thread steve
Il 16/01/19 08:51, Peter Otten ha scritto: def make_ui(self): ''' create user interface ''' def vcmd(maxlength): return self.parent.register( partial(self.maxlength_validate, maxlength=maxlength) ), "%P" ... ok following your

Re: ImportError: cannot import name certificate_transparency

2019-01-17 Thread Stone Zhong
On Thursday, January 17, 2019 at 12:10:51 AM UTC-8, Stone Zhong wrote: > Hi, > > My program depend on package oci, I am using the following command to install > it: > pip install oci > > Everything works perfect in virtualenv (I am still using python 2.7.x) > > Now I am creating a zip file from

ImportError: cannot import name certificate_transparency

2019-01-17 Thread Stone Zhong
Hi, My program depend on package oci, I am using the following command to install it: pip install oci Everything works perfect in virtualenv (I am still using python 2.7.x) Now I am creating a zip file from the libraries: pip install oci -t ~/temp/oci cd ~/temp/oci zip -r ~/temp/oci.zip . Tes