My window is to have a label
over an image. How do I place
a label that has a transparent
background so as to not have
the square of the label look
so obnoxious?
SGA
--
https://mail.python.org/mailman/listinfo/python-list
de
your handler.
How would that be done?
SGA
-Original Message-
From: Python-list
On
Behalf Of Thomas Passin via
Python-list
Sent: Monday, February 26,
2024 8:34 AM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2/26/2024 6:02 AM, Steve GS
via
re)
print("15 Ww Inside1 = <"+str(Ww)+">")
#Ww2 = int(Ww) * 2 # fails
print("17 WwZ Inside2 = <"+str(WwZ)+">")
root.mainloop()
Ww2 = int(Ww) * 2 #Works but only after the program stops
print("21 Ww Outside2 = <"+str(WwZ)+">&
unday, February 25,
2024 5:55 PM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2/25/2024 4:19 PM, Steve GS
via Python-list wrote:
> SOLUTION FOUND!
>
> The fix was to write the
code that uses the width value
and to place it into the
function i
org
Subject: Re: Problem resizing
a window and button placement
On 2024-02-25 21:19, Steve GS
via Python-list wrote:
> SOLUTION FOUND!
>
> The fix was to write the
code that uses the width value
and to place it into the
function itself.
> Kluge? Maybe but it works.
>
> Mischief Manag
ot sure how this help[s.
As a curio, it would be interesting to see how to use the value of a variable,
created in the function used here, and make it available to the code outside
the function.
SGA
-Original Message-
From: Alan Gauld
Sent: Sunday, February 25, 2024 12:44 PM
To:
So, how do I use the width value in my code?
SGA
-Original Message-
From: Python-list On Behalf
Of MRAB via Python-list
Sent: Saturday, February 24, 2024 10:36 PM
To: python-list@python.org
Subject: Re: Problem resizing a window and button placement
On 2024-02-25 02:51, Steve GS wrote
window and button placement
On 2/24/2024 9:51 PM, Steve GS
via Python-list wrote:
First of all, please make sure
that the formatting is
readable and especially the
indentation. This is Python,
after all.
Do not use tabs; use 3 or 4
spaces instead of each tab.
> import tkinter as tk
>
>
gure)
print("WwOutside = <" +
str(Ww) + ">")
#NameError: name 'Ww' is not
defined
root.mainloop()
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Saturday, February 24,
2024 7:49 PM
To: python-list@python.org
Subject: Re: Problem r
as Passin via
Python-list
Sent: Saturday, February 24,
2024 8:40 AM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2/24/2024 3:20 AM, Steve GS
via Python-list wrote:
> Yes, I ran that elegantly
> simple code. The print
> statement reports the X,
use
the variable Vwidth outside
the sub routine. It is acting
as if Vwidth is not global but
I added that. It is reported
that Vwidth is not defined
when I try to use it in my
code.
So close..
SGA
-Original Message-
From: Barry
Sent: Saturday, February 24,
2024 3:04 AM
To: Steve GS
How do I extract the values
from args?
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Friday, February 23,
2024 9:27 PM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2024-02-24 01:14, Steve GS
via Python-list
Python, Tkinter: How do I
determine if a window has been
resized? I want to locate
buttons vertically along the
right border and need to know
the new width. The buttons are
to move with the change of
location of the right-side
border.
SGA
--
https://mail.python.org/mailman/listinfo/p
Does anything from the Visual Studio family of software have a pull down menu
that lists previous searches so that I don’t have to enter them every time?
SGA
-Original Message-
From: Friedrich Romstedt
Sent: Tuesday, December 12, 2023 12:52 PM
To: Steve GS
Cc: python-list@python.org
Maybe this already exists but
I have never seen it in any
editor that I have used.
It would be nice to have a
pull-down text box that lists
all of the searches I have
used during this session. It
would make editing a lot
easier if I could select the
previous searches rather than
having to enter it
now more of a
curiosity as I did use the
integer comparisons.
SGA
-Original Message-
From: Python-list
On
Behalf Of dn via Python-list
Sent: Sunday, December 10,
2023 12:53 AM
To: python-list@python.org
Subject: Re: A problem with
str VS int.
On 10/12/23 15:42, Steve GS
via Python-list
er valid sensor test strip Reading.")
I converted the variable to int along with the if statement comparison and it
works as expected.
See if it fails for you...
Steve
--
https://mail.python.org/mailman/listinfo/python-list
How do I subtract two time/dates and calculate the hours and minutes
between?
Steve
--
https://mail.python.org/mailman/listinfo/python-list
Yes, it is real-time play back of a pre-recorded presentation.
A juke box does the same thing. It plays records.
You didn't put your quarter in to expect the band to play your piece live,
did you?
Same here, I am pulling in the programs and playing them for an audience.
All I want to do is have s
-list On
Behalf Of MRAB
Sent: Tuesday, May 31, 2022 9:47 PM
To: python-list@python.org
Subject: Re: Automatic Gain Control in Python?
On 2022-06-01 02:03, Steve GS wrote:
[snip]
> Maybe you do not understand smart speakers. That is exactly what they do.
> You tell them what podcast/broadcast t
>Even easier, the few NPR podcasts I just checked now have RSS feeds of
their episodes (as expected). It seems it would be much easier to just
download the latest episode based on the XML file, normalize, send it to
play, done.
How can that possibly be easier? I am playing the podcast and r
wish for more wishes.
Me: I wish I could.
From: Benjamin Schollnick
Sent: Sunday, May 29, 2022 11:18 AM
To: Steve GS
Cc: Richard Damon ; Python
Subject: Re: Automatic Gain Control in Python?
Okay, you are capturing the audio stream as a digital file somewhere, correct?
Why not just
not sure what you are doing is actually
legitimate.
Yes, I have been through that. It is totally legal to record NPR broadcasts for
replay as long as they are not retained for than a month or for multiple
replays. Your suggestion to download and play a podcast or broadcast is legal
only for li
th orange?”
“No, it doesn’t..”
-Original Message-
From: Richard Damon On Behalf Of Richard Damon
Sent: Saturday, May 28, 2022 11:37 PM
To: Steve GS
Subject: Re: Automatic Gain Control in Python?
On 5/28/22 8:17 PM, Steve GS wrote:
> "My first thought is you are solving the wron
ct: Re: Automatic Gain Control in Python?
On 2022-05-29 01:17, Steve GS wrote:
> "My first thought is you are solving the wrong problem. What seems a
> better option would be to get your code to actually connect up to the
> podcast and just download the audio directly, rather than trying
hes.
Me: I wish I could.
-Original Message-
From: Python-list On
Behalf Of Richard Damon
Sent: Saturday, May 28, 2022 6:53 PM
To: python-list@python.org
Subject: Re: Automatic Gain Control in Python?
On 5/28/22 5:29 PM, Steve GS wrote:
> I have an extensive Excel/VBA program that hou
I have an extensive Excel/VBA program that hourly calls and plays podcasts
through a "smart" speaker. The output of the speaker feeds into another
computer that records the m\audio using Audacity.
It has become obvious that NPR does not regulate volumes for podcasts and
broadcasts nor are programs
the s14a
library…
Oh well, nothing is as simple as it first seems. It may take a while but I am
willing to give it a go.
Steve
George Melly remarked to Mike Jagger on how lined his face was for one so
young. Jagger replied “They’re laughter lines George” to which Melly countered
I have designed a simple alarm using Python. It has about 10 limes.
How do I convert it to an app that I can on my android Moto E power 2021
phone?
Steve
--
https://mail.python.org/mailman/listinfo/python-list
, of course. Much cleaner and I should have seen that myself.
Thanks.
BUT
> (untested) ?
I have tested it and with () instead of [] it's even slower:
explicit loop: 37s ± .5s
sum([...]) 44s ± .5s
sum((...)) 47.5s ± .5s
Now completely surprised.
Steve
--
https://mail.python.org/mailman/listinfo/python-list
I generate about 14 million pairs of sequences of ints each
of length 15 which need to be summed. The first version with sum() needs
44 seconds while the second version runs in 37 seconds.
Can someone explain this difference?
Steve
--
https://mail.python.org/mailman/listinfo/python-list
Yes, I saw that but it is a change for all sides.
Is there a setting to change just the left and right padding?
-Original Message-
From: Michel Alwan
Sent: Monday, October 4, 2021 7:56 AM
To: Steve
Cc: python-list@python.org
Subject: Re: matplotlib graph white space
In the plot
I am using the first bar graph listed at this site:
https://matplotlib.org/stable/gallery/index.html
The problem I have is that there is too much white space around the graph.
My data would be better displayed if I could widen the graph into the space
to the right and left of the chart.
Steve
"Dieter Maurer" writes:
> Steve Keller wrote at 2021-9-24 11:48 +0200:
> >Why do some built-in Python functions feel so differently:
>
> Because the typical use cases are different
>
> [...]
>
> >while other functions like set.union() and set.intersect
to use a * instead
set.union(*map(...))
etc.
Is this just for historical reason? And wouldn't it be possible and
desirable to have more consistency?
Steve
--
https://mail.python.org/mailman/listinfo/python-list
I would like to know how the data is placed on the Y-axis and at the tops of
the bars.
The data is not being shown properly. With some exceptions, it looks as if
the data is getting sorted independently from the dates.
OK, here is the code:
==
# https:
I am trying to modify the "Bar Graph Demo" at
https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers
but the more I experiment and change the code, the more messed up it
becomes. I have the demo code working. This is my second attempt. I guess
I accidentally got my first char
-Original Message-
From: Python-list On
Behalf Of Greg Ewing
Sent: Wednesday, August 18, 2021 11:49 AM
To: python-list@python.org
Subject: Re: Regarding inability of Python Module Winsound to produce beep
in decimal frequency
On 18/08/21 4:43 pm, Steve wrote:
>>
>> "
"The HAL (hardware abstraction layer) function HalMakeBeep()"
Is the beep that opens the pod bay doors?
Footnote:
George Melly remarked to Mike Jagger on how lined his face was for one so
young. Jagger replied Theyre laughter lines George to which Melly
countered: Mick, nothings that f**k
Women')
# Add some text for labels, title and custom x-axis tick labels, etc.
ax.set_ylabel('Scores')
ax.set_title('Scores by group and gender')
ax.set_xticks(x)
ax.set_xticklabels(labels)
ax.legend()
ax.bar_label(rects1, padding=3)
ax.bar_label(rects2, padding=3)
Thank you, the responses here have been extremely helpful.
Steve
Footnote:
There's 99 bugs in the code, in the code.
99 bugs in the code.
Take one down and patch it all around.
Now there's 1
I forgot about the no-file rule...
On 28Jul2021 02:55, Steve wrote:
>I am going though a struggle with this and just don't see where it fails.
>I am using the Dual Bar Graph.py program from
https://matplotlib.org/stable/gallery/index.html website.
>The file from the web site works
e the values of
the variables I want to pass to the graph section of the code. If the values
are hardcoded, the graphs look good. When the variables generated by my
section of the code, it does not.
I am not sure what more to explain.
Please help me
Steve
I am attaching a zip file. I ho
Finally found the solution
Options.importSite = false;
which solved my issue.
I can't set Bindings and pass args to script. The only example I found is for
JavaScript. I think maybe it doesn't work for jython.
Thanks
From: Python-list on
behal
Not sure if this is the right list for jython questions.
I am getting started with both python and jython. My use case need is invoking
python from java. org.python:jython:2.7.2 loaded ok.
To check, I executed the following.
ScriptEngineManager manager = new ScriptEngineManager();
List engine
Just a short style question: When returning multiple return values, do
you use parenthesis?
E.g. would you write
def foo():
return 1, 2
a, b = foo()
or do you prefer
def foo():
return (1, 2)
(a, b) = foo()
Steve
--
https://mail.python.org/mailman/listinfo
On Wednesday, December 30, 2020 at 9:03:28 AM UTC-8, Chris Green wrote:
> Anssi Saari wrote:
> > Chris Green writes:
> >
> > > Why are there both /usr/lib/python3 and /usr/lib/python3.8 on my
> > > x[ubuntu] system?
> >
> > While it's more of an Ubuntu (or Debian) question better asked in s
: Is there a conflict of libraries here?
On 2020-11-07 13:26:30 -0500, Steve wrote:
> Ok, I think I see a light in the fog.
>
> It looks as if I can identify a variable to contain a library.
>
> Import datetime as dt1
>
> I guess that I can have a second variable contain
ee :{}, seems bizarre..
Is my dt1 now a variable containing the properties of datetime and they are
listed between { } and available globally.
Do I then have dt1.datetime and dt2.datetime as separate instances?
Is that how they are identified? How are they applied?
More questions will follow.
l Message-
From: Python-list On
Behalf Of Peter Pearson
Sent: Friday, November 6, 2020 10:36 AM
To: python-list@python.org
Subject: Re: Is there a conflict of libraries here?
On Fri, 6 Nov 2020 02:25:25 -0500, Steve wrote:
> In my program, I have the following lines of code:
hem.
The error produced is:
time1 = datetime.datetime.strptime(T1, date_format)
AttributeError: type object 'datetime.datetime' has no attribute
'datetime'
How do I have my cake and eat it too?
Steve
Footnote:
Some mornings it just isn't worth ch
lineEQN[7:36].strip()
When I print ItemDateTime, it looks like:
2020-11-04 17:28:03.352027
How do I display it as "Wednesday, November 4, 2020 5:28pm" ?
Steve
-
Footnote:
Seatbelts are very dangerous.
I ca
.
FootNote:
If money does not grow on trees, then why do banks have branches?
From: Maxime S
Sent: Sunday, October 25, 2020 7:15 AM
To: Steve
Cc: Python
Subject: Re: Is there a log file that tracks every statement that is being
executed when a program is running?
Hi,
You can use
coaster: "W"
Spanish speakers on a rollercoaster: " Nosostros"
-Original Message-
From: Python-list On
Behalf Of shrimp_banana
Sent: Saturday, October 17, 2020 9:47 PM
To: python-list@python.org
Subject: Re: File Name issue
On 10/17/20 4:12 PM, Steve wrote:
>
I am not sure if what I did to repair it but the problem is gone.
A copy/paste/rename was performed on the original code file and now I do not
get the error. No need for "r" or "\"...
WTH? I hate it when that happens.
Steve
Footnote:
"What rhymes with orange?"
&q
","a")
And it works.
At first, I thought the issue was due to having the - in the filename.
Is there a fix or explanation for this?
Steve
FootNote:
Would it be ironic if Popeye's chicken was fried in Olive Oil?
--
https://mail.python.org/mailman/listinfo/python-list
showing seconds?
On 2020-10-16 9:42 AM, Steve wrote:
> d2 = datetime.datetime.now() #Time Right now
>
> Show this: 2020-10-16 02:53
> and not this: 2020-10-16 02:53:48.585865
>
>>>
>>> str(d2)
'2020-10-16 10:29:38.423371'
>>>
>>>
d2 = datetime.datetime.now() #Time Right now
Show this: 2020-10-16 02:53
and not this: 2020-10-16 02:53:48.585865
==
Footnote:
If you double major in psychology and reverse psychology, to they cancel
each other out?
--
--
https://m
did not
see anything that would help.
It is most annoying, is there a fix for it?
I explored
Steve
==
Footnote:
Mars is the only known planet in our solar system solely inhabited by
functioning robots.
--
https://mail.python.org/mailman
: Re: What might cause my sample program to forget that already
imported datetime?
On Mon, Oct 12, 2020 at 9:14 PM Steve wrote:
>
> At the top of my sample program, I have:
>
> import datetime
> from datetime import *
>
> But import datetime also has to be entered on line 21 a
At the top of my sample program, I have:
import datetime
from datetime import *
But import datetime also has to be entered on line 21 as shown.
The error is printed at the bottom of the code.
Why does the code seem to forget that I have already imported datetime?
=
Thanks for the responses. Somehow, all of my python messages were shifted
into the deleted folder so I missed all of them until I caught the one from
MRAB.
I will sift through them and probably update my technique to use seconds as
suggested.
Still, I enjoyed the kluge I created making it work b
eInfo.close()
# ===
Granted, there may be other ways to do this but I actually enjoy the
exploration...
Still, I would like to see other methods.
Steve
-Original Message-----
From: Dieter Maurer
Sent: Sunday, October 11, 2020 12:48 PM
To: Steve
Subje
gets read back in as d1 as string. The variable d1 as string will
not work in the HoursDiff statement.
To me, it looks like a problem in formatting.
How do I fix this?
Steve
--
https://mail.python.org/mailman/listinfo/python-list
-list On
Behalf Of Grant Edwards
Sent: Sunday, September 13, 2020 9:41 PM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py
On 2020-09-13, Steve wrote:
> "There is no promise on time.sleep() that the program will restart
> exactly when the time expires."
>
> No
tember 13, 2020 3:06 PM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py
On Sat, 12 Sep 2020 14:23:25 -0400, "Steve" declaimed
the following:
>
>You are correct. I use the py timer to pause the commands being sent
>to the pipe. There seems to be something
It makes it easier
for me to follow the logic especially if they are nested.
-Original Message-
From: Python-list On
Behalf Of Dennis Lee Bieber
Sent: Friday, September 11, 2020 1:32 PM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py
On Thu, 10 Sep 2020 18:22:29 -0400,
I downloaded the software and have been given a few test commands to use.
When I run it as it is, I get the request to enter the commands manually and
they work.
I do not see how to get the commands to work automatically. Somehow, I have
to bypass the "Enter command or 'Q' to quit"
How do I do thi
seem to work unless they are immediately after the Record1stChoice
instruction. This means that placement of the labels happen after the track
is recorded and before the recording is stopped. I can live with that
Now I am going to see if I can name the label track and the recording
Track...
of the labels happen after the track
is recorded and before the recording is stopped. I can live with that
Now I am going to see if I can name the label track and the recording
Track...
Steve
FootNote:
If money does not grow on trees, then why do banks have branches?
-Original Mess
grow on trees, then why do banks have branches?
-Original Message-
From: Python-list On
Behalf Of Dennis Lee Bieber
Sent: Wednesday, September 9, 2020 11:17 AM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py
On Wed, 9 Sep 2020 03:12:59 -0400, "Steve" declai
l in the label track
do_command("Stop") # stops the recording
But not this one:
do_command("SetLabel:Label='1' Text='Hello' ")
This is supposed to place "Hello" into the label.
Steve
Foonote:
The patient shall strive to suffer the symp
= 5, padx = 15,
sticky=tk.W)
SVRCodeEntered.insert(0, OldSpec)
x += 1
y += 1
return ([spec.get()for spec in New_Specs])
==
Steve
=
Footnote:
Some mornings it just isn't worth chewing through the leather straps.
--
https://mail.python.org/mailman/listinfo/python-list
From: Chris Angelico
Sent: Tuesday, September 1, 2020 5:08 PM
To: Steve
Cc: Python
Subject: Re: What kind of magic do I need to get python to talk to Excel xlsm
file?
On Wed, Sep 2, 2020 at 6:59 AM Steve wrote:
>
> Wow, that is quite a list
> Here is what I narrowed it down to. Wh
lar system solely inhabited by
functioning robots.
-Original Message-
From: Python-list On Behalf
Of Chris Angelico
Sent: Tuesday, September 1, 2020 4:44 PM
To: Python
Subject: Re: What kind of magic do I need to get python to talk to Excel xlsm
file?
On Wed, Sep 2, 2020 at 6:17 AM St
create a pandas development environment.
And the music goes round and round…..
FootNote:
If money does not grow on trees, then why do banks have branches?
From: Jeffrey Powell
Sent: Tuesday, September 1, 2020 5:33 AM
To: Steve
Subject: Re: What kind of magic do I need to get
Glutton for punishment, I am looking into designing another .py program. I
would like to pull two columns of information from Excel but the more I look
into coding on the 'net, the more confusing it looks. I don't understand
what I need to import or install to get the link.
Steve
lines of code. With the loops, probably now is 75.
Steve
FootNote:
If money does not grow on trees, then why do banks have branches?
-Original Message-
From: Python-list On
Behalf Of Peter Otten
Sent: Monday, August 31, 2020 3:56 AM
To: python-list@python.org
Subject: RE: How do I
not think of returning the list.
Thank you, now it is back for another 30 hours of continuous programming...
(:
Steve
Footnote:
"What rhymes with orange?"
"No it doesn't.."
-Original Message-
From: Python-list On
Behalf Of Peter Otten
Sent: Sunday, Augu
# through will help.
#
# Thank you
# Steve
# ---
import tkinter as tk
from tkinter import ttk
import sys
ThisList = ["start"]
#===
def FillTheList():
x=0
It turned out to be "sticky=tk.W" instead of "sticky=tkinter.w"
Probably because I have "import tkinter as tk"
It does work though.
Mischief Managed
Steve
FootNote:
If money does not grow on trees, then why do banks have branches?
-Original Message
NewSpec = tk.StringVar()
New_Specs.append(NewSpec)
SVRCodeEntered = ttk.Entry(window, width = 15, textvariable =
NewSpec)
SVRCodeEntered.grid(column = 2, row = x, pady = 15)
SVRCodeEntered.insert(0, OldSpec)
x += 1
Yes, that first option worked.
Special thanks...
Steve
===
Footnote:
If 666 is considered evil, then technically, 25.8069758 is the root of all
evil.
-Original Message-
From: Python-list On
Behalf Of Peter Otten
Sent: Sunday, August 30, 2020 5:29 AM
To
Compiles, no syntax errors however, line 82 seems to run only once when the
FOR loop has completed.
Why is that? All fields are to contain the specifications, not just the
last one.
Steve
Works like a charm, special thanks.
Steve
=
Footnote:
He called his wife to see if he should pick up Fish and Chips on the way
home. She hung up on him. She is still fuming over letting him name the
kids.
-Original Message-
From
t.."
From: Colin McPhail
Sent: Friday, August 28, 2020 7:46 AM
To: Chris Narkiewicz via Python-list
Cc: Steve
Subject: Re: How do I place a preset into the text box?
Hi Steve,
On 28 Aug 2020, at 11:03, Steve mailto:Gronicus@SGA.Ninja> > wrote:
The following program
The following program compiles but does not quite do what I would like it to
do. Line 19 is the preset information but I do not seem to be able to get it
into the form by code. My purpose is to let the user make changes without
having to re-enter the entire code.
Suggestions welcome.
Steve
nts = makeform1(root1, fields1)
b1 = Button(root1, text = 'Submit',
command=(lambda e = ents: SubmitForm(e)))
b1.pack(side = LEFT, padx = 5, pady = 5)
b2 = Button(root1, text = 'Quit', command = root1.quit)
b2.pack(side = LEFT, padx = 5, pady = 5)
root1.
y, to they cacel each
other out?
-Original Message-
From: Python-list On
Behalf Of Peter Otten
Sent: Saturday, August 22, 2020 2:26 AM
To: python-list@python.org
Subject: Re: How do I use the data entered in a form?
Steve wrote:
> def makeform(root, fields):
>entries = {}
>
x27;Quit', command = root.quit)
b2.pack(side = LEFT, padx = 5, pady = 5)
root.mainloop()
SR = (entries['Sensor_Reading'].get())
print ("SR Outside = " + SR)
==
The last two lines were guesses but they still failed.
Steve
==
Footnote:
English speakers on a roller coaster: "W"
Spanish speakers on a rollercoaster: " Nosostros"
--
https://mail.python.org/mailman/listinfo/python-list
0 2017-11-01 00:00:00
If you are reading it is as a line into python, then it is a tuple and can be
parsed accordingly:
Nb = YourdataLIne[0:1] #Line Number
Yr = YourDataLine[3:7]#Year
Da = YourDataLine[9:11] #Day
Mo = YourDataLine[13:14] #Month
Hr = YourDataLine[16:1
From: Python-list On
Behalf Of Terry Reedy
Sent: Sunday, August 9, 2020 9:51 PM
To: python-list@python.org
Subject: Re: IDLE: New Feature?
On 8/9/2020 7:39 PM, Steve wrote:
> Where would the conversation have to happen to get the forces-that-be
> to install a pull-down/history menu for th
bandwidth thinking about coding.
Steve
Footnote:
There's 99 bugs in the code, in the code.
99 bugs in the code.
Take one down and patch it all around.
Now there's 117 bugs in the code.
--
https://mail.
riginal Message-
From: MRAB
Sent: Saturday, August 8, 2020 9:08 PM
To: Steve
Subject: Re: Save-to-file code not quite working completely
On 2020-08-09 00:51, Steve wrote:
> I don't see that. What I do see is that it placing the new string but
> leaving most of the old one.
That
omehow disappeared.
So close, so simple...
How do I fix this?
Steve
P.S. I read to add ".rstrip()" but that messed things even more... (-:
===
Footnote:
logomachist - someone given to disputes over words. logomach.
controversialist
.
FootNote:
If money does not grow on trees, then why do banks have branches?
From: Souvik Dutta
Sent: Tuesday, August 4, 2020 5:12 AM
To: Steve
Subject: Re: Updating a variable problem.
I don't know your exact meaning of fail. But as much as I can say there is a
new variable MSN
Why should line 6 fail until line 7 is commented out?
Python complains that MSN is "referenced before assignment".
def ReadTheEQfile():
global MSN
MSN = ("1 Monitor") #This line works every time.
def EditTheEQlist():
print("MSN2 = " + MSN) # Works if the next line is commented out.
MS
Python/IDLE How do I get rid of the "suggestion" box tool tips that always
blocks the work I need to see when writing code? Do they really have to cram
it right up at the data entry point? Can't it be down in the border and out
of the way?
I don't use it as much as it is interfering with my work
When I double click on a .py file, it executes at the command prompt with black
background and small white font.
Is there python code to change the font size and background color?
===
FootNote:
Would it be ironic if Popeye’s chicken was fried in Olive Oil?
-Original Message-
From: Python-list On
Behalf Of DL Neil via Python-list
Sent: Tuesday, July 28, 2020 6:15 PM
To: python-list@python.org
Subject: Re: Local access to a file, How To ?
On 29/07/2020 08:56, Steve wrote:
> I have a python program that reads and writes to files that are all
1 - 100 of 7212 matches
Mail list logo