This is what I created ScrollableContainers for. Its usage deviates a bit
from standard Tkinter practices in that you add widgets to the frame
attribute of a ScrollableFrameTk instance.
[1]twitter.abaf4b19.webp
[2]ScrollableContainers
pypi.org
For your use case, you coul
On 2024-11-04 13:02:21 +0100, Loris Bennett via Python-list wrote:
> "Loris Bennett" writes:
> > "Loris Bennett" writes:
> >> Cameron Simpson writes:
> >>> On 01Nov2024 10:10, Loris Bennett wrote:
> as expected. The non-UTF-8 text occurs when I do
>
> mail = EmailMessage()
> >>>
L.S.,
Python seem to suffer from a few poor design decisions regarding strings
and lists that affect the elegance of the language.
(a) An error-prone "feature" is returning -1 if a substring is not found
by "find", since -1 currently refers to the last item. An example:
>>> s = 'qwertyuiop'
On 04Nov2024 13:02, Loris Bennett wrote:
OK, so I can do:
##
if args.verbose:
for k in mail.keys():
print(f"{k}: {mail.get(k)}")
print('')
print(mail.get_content())
##
>
> (a) An error-prone "feature" is returning -1 if a substring is not found
> by "find", since -1 currently refers to the last item. An example:
>
> >>> s = 'qwertyuiop'
> >>> s[s.find('r')]
> 'r'
> >>> s[s.find('p')]
> 'p'
> >>> s[s.find('a')]
> 'p'
> >>>
>
> If "find" is unsuccessful, an er
On 6/11/24 10:08, Jason Friedman via Python-list wrote:
(a) An error-prone "feature" is returning -1 if a substring is not found
by "find", since -1 currently refers to the last item. An example:
>>> s = 'qwertyuiop'
>>> s[s.find('r')]
'r'
>>> s[s.find('p')]
'p'
>>> s[s.find('a')]
'p'
On 05Nov2024 15:48, Raymond Boute wrote:
Python seem to suffer from a few poor design decisions regarding
strings and lists that affect the elegance of the language.
(a) An error-prone "feature" is returning -1 if a substring is not
found by "find", since -1 currently refers to the last item.
Hi,
I have installed a package, 'first-package, built using Poetry and
installed it as root in /usr/local. The package is on sys.path so root
can successfully import it.
I have now developed a second package which depends on 'first-package'.
I would have expected that I could specify this depend
On 6/11/24 4:13 am, Loris Bennett wrote:
[tool.poetry.dependencies]
python = "^3.6"
first-package = "^1.6.0"
Could not find a version that satisfies the requirement
first-package<2.0.0,>=1.6.0 (from second-package==0.5.0) (from versions: )
No matching distribution found for first-package<2.0