Re: Is it 'fine' to instantiate a widget without parent parameter?

2019-09-09 Thread jfong
Terry Reedy於 2019年9月10日星期二 UTC+8上午11時43分05秒寫道: > On 9/9/2019 8:30 PM, jf...@ms4.hinet.net wrote: > > Terry Reedy於 2019年9月9日星期一 UTC+8下午3時06分27秒寫道: > > >> There will only be one default Tk object, but there can be multiple Tk > >> objects. > > import tkinter as tk > f0 = tk.Frame() > > T

Re: pandas loc on str lower for column comparison

2019-09-09 Thread Sayth Renshaw
On Tuesday, 10 September 2019 12:56:36 UTC+10, Sayth Renshaw wrote: > On Friday, 6 September 2019 07:52:56 UTC+10, Piet van Oostrum wrote: > > Piet van Oostrum <> writes: > > > > > That would select ROWS 0,1,5,6,7, not columns. > > > To select columns 0,1,5,6,7, use two-dimensional indexes > > >

How to correctly use 'in_' argument in tkinter grid()?

2019-09-09 Thread jfong
I had tried the following script test.py: import tkinter as tk class Demo(tk.Frame): def __init__(self): tk.Frame.__init__(self, name='demo') self.pack() panel = tk.Frame(self, name='panel') panel.pack() start = tk.Button(text=

Re: Is it 'fine' to instantiate a widget without parent parameter?

2019-09-09 Thread Terry Reedy
On 9/9/2019 8:30 PM, jf...@ms4.hinet.net wrote: Terry Reedy於 2019年9月9日星期一 UTC+8下午3時06分27秒寫道: There will only be one default Tk object, but there can be multiple Tk objects. import tkinter as tk f0 = tk.Frame() This causes creation of a default root root0 = tk.Tk() This creates another

Re: numpy array - convert hex to int

2019-09-09 Thread Sharan Basappa
On Sunday, 8 September 2019 11:16:52 UTC-4, Luciano Ramalho wrote: > >>> int('C0FFEE', 16) > 12648430 > > There you go! > > On Sun, Sep 8, 2019 at 12:02 PM Sharan Basappa > wrote: > > > > I have a numpy array that has data in the form of hex. > > I would like to convert that into decimal/integ

Re: issue in handling CSV data

2019-09-09 Thread Sharan Basappa
On Sunday, 8 September 2019 12:45:45 UTC-4, Peter J. Holzer wrote: > On 2019-09-08 05:41:07 -0700, Sharan Basappa wrote: > > On Sunday, 8 September 2019 04:56:29 UTC-4, Andrea D'Amore wrote: > > > On Sun, 8 Sep 2019 at 02:19, Sharan Basappa > > > wrote: > > > > As you can see, the string "\t"81

Re: pandas loc on str lower for column comparison

2019-09-09 Thread Sayth Renshaw
On Friday, 6 September 2019 07:52:56 UTC+10, Piet van Oostrum wrote: > Piet van Oostrum <> writes: > > > That would select ROWS 0,1,5,6,7, not columns. > > To select columns 0,1,5,6,7, use two-dimensional indexes > > > > df1 = df.iloc[:, [0,1,5,6,7]] > > > > : selects all rows. > > And that also

Re: Is it 'fine' to instantiate a widget without parent parameter?

2019-09-09 Thread jfong
Terry Reedy於 2019年9月9日星期一 UTC+8下午3時06分27秒寫道: > On 9/8/2019 8:40 PM, jf...@ms4.hinet.net wrote: > > > Thank you. After a quick trace to find out the reason, I found that Tkinter > > prevents Tk() be called more than once from widget constructors, so only > > one Tk object exists:-) > > There wil

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Wildman via Python-list
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our intention to > chan

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Wildman via Python-list
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our intention to > chan

Re: [OT(?)] Ubuntu 18 vim now defaults to 4-space tabs

2019-09-09 Thread Eli the Bearded
In comp.lang.python, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing Your subject missed a critical word: vim. There are a lot of editors in Ubuntu, and probably they don't all do that. > This is more of a vim question perhaps, but I'm already > subscribed here and I f

[OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Tobiah
We upgraded a server to 18.04 and now when I start typing a python file (seems to be triggered by the .py extension) the tabs default to 4 spaces. We have decades of code that use tab characters, and it has not been our intention to change that. I found a /usr/share/vim/vim80/indent/python.vim a

[RELEASED] Python 3.5.8rc1 is released

2019-09-09 Thread Larry Hastings
On behalf of the Python development community, I'm chuffed to announce the availability of Python 3.5.8rc1. Python 3.5 is in "security fixes only" mode.  This new version only contains security fixes, not conventional bug fixes, and it is a source-only release. You can find Python 3.5.8rc1

ANN: Wing Python IDE 7.1.1

2019-09-09 Thread Wingware
Wing Python IDE version 7.1.1 has been released. This release avoids slowing and dropping of remote development connections, fixes showing Pandas DataFrame and Series values, makes OS Commands work on remote hosts with Python 3, inspects remote extension modules with non-ascii characters in th

Re: Color representation as rgb, int and hex

2019-09-09 Thread Eko palypse
> No, constructing a bytes literal from hex digits implies that they > follow the sequence in the string of digits. It's nothing to do with > the endinanness of integers. > ChrisA > Why should it imply that? You're asking it to create some bytes > from a string of hex digits -- no mention of integ

Re: Color representation as rgb, int and hex

2019-09-09 Thread Gregory Ewing
Eko palypse wrote: I thought a method called fromhex would imply that bytes for an integer should be created Why should it imply that? You're asking it to create some bytes from a string of hex digits -- no mention of integers. The obvious thing to do is to put the bytes in the order they apper

Re: [Python-ideas] Re: Automatic translation of Python to assembly language

2019-09-09 Thread Gregory Ewing
Mark at PysoniQ.com wrote: > an extension (.dll or .so) is not generally included in a > makefile because it's dynamically linked and not incorporated into an > executable -- which Python doesn't have. If I change the source, the .dll or .so needs to be re-created. That's a build step, and as suc

Re: Is it 'fine' to instantiate a widget without parent parameter?

2019-09-09 Thread Terry Reedy
On 9/8/2019 8:40 PM, jf...@ms4.hinet.net wrote: Thank you. After a quick trace to find out the reason, I found that Tkinter prevents Tk() be called more than once from widget constructors, so only one Tk object exists:-) There will only be one default Tk object, but there can be multiple Tk