On 6/21/23 09:47, Dan Kolis wrote:
I've write a huge biotech program ( an IDE for synthetic biology ), and am
slowly outgrowing TKINTER.
Has anybody out there merged a little bit of TCL direct calls from Python 3.X
to get more freedom then TKINTER for just some Windows ?
I wish it looked be
I used to run my own mail server.
Now I don't.
Practicality beats purity.
To be quite frank, the moralistic approach of complaining about the
way other people are too happy to give control to big companies is
NEVER going to achieve anything. You're welcome to be a little island,
that one Ga
On 5/22/23 12:10, Grant Edwards wrote:
On 2023-05-21, Retrograde wrote:
Who ever came up with "Removing dead batteries" as a slogan, when
some of those batteries still work perfectly well, needs to rethink
it. Go ahead and remove code that no longer works, OK. But removing
unpopular modules?
On 5/23/23 21:18, Rob Cliffe wrote:
Comments, anyone?
Better yet (holds breath ...) can anyone point me towards some decent
tkinter documentation?
The variables are slightly more integrated when using tcl/tk directly,
python has to have the object so you can track/use them easier. And the
v
On 5/5/23 04:39, c.bu...@posteo.jp wrote:
That being said, the git repo linked earlier has accepted commits to
that file earlier this year. So read in to that what you will *shrugs*
--
https://mail.python.org/mailman/listinfo/python-list
On 5/5/23 04:39, c.bu...@posteo.jp wrote:
Thanks for the answer.
Am 05.05.2023 03:24 schrieb aapost:
pygettext is deprecated since xgettext supports python now, so using
xgettext is recommended.
If this is the official case then it should be mentioned in the python
docs. The 3.11 docs still
On 5/4/23 17:38, c.bu...@posteo.jp wrote:
am I right to assume that "pygettext" is part of the official Python3
"package"? So it is OK to aks here?
How can I set the "Project-Id-Version"? With "xgettext" I would use the
arguments "--package-name" and "--package-version" for this but they are
Just in case anyone else runs in to it.
If you have code such as:
char* a;
char* b;
char* d;
int size;
if (!PyArg_ParseTuple(args, "sss#:f", &a, &b, &d, &size))
return NULL;
and it tells you to:
#define PY_SSIZE_T_CLEAN
#include "Python.h"
Be sure to change int si
On 4/20/23 18:44, Lorenzo Catoni wrote:
Here, the TypeError occurred because "self" was passed as an input
Instantiate X and observe it there
x2 = X()
>>> X.__enter__
>>> X.__exit__
at 0x...>
>>> x2.__enter__
>>> x2.__exit__
of <__main__.X object at 0x...>>
To receive self the method mu
On 4/18/23 19:18, Kevin M. Wilson wrote:
Why complain about a 'comma', or a ')'???
print (f'"I am thinking of a number between 1 to {LIMIT}\n")
my version says it expects ' first (to close the fstring)
then on a new line below it, it mentions the comma and )
I believe that is just showing
On 4/17/23 08:45, Rich Shepard wrote:
On Sun, 16 Apr 2023, Thomas Passin wrote:
Slackware isn't as straight forward in it's management as other distros
(not standardized anyway). If this is someone elses install I would be
cautious in using any advice I am providing, as it would be better for
On 4/14/23 14:33, angela vales wrote:
I have recently created a tkinter app and need the ability to copy and paste
data from tksheet table into an Excel file. I do have a button for export, but
it will be beneficial to also allow the user to simply copy,paste.
I have enabled the appropriate bi
On 4/13/23 03:40, Guenther Sohler wrote:
Attachments are stripped, so they weren't included.
Glancing at the branch and the 2 lines you mentioned.
You have a comment with a link for python 2.3 documentation.
Yet you have python 3.10 code included elsewhere (and openscad itself
requires the
On 4/12/23 04:03, Ali Mohseni Roodbari wrote:
>
On 4/13/23 07:50, Stefan Ram wrote:
>If tomorrow Python would allow "string+int" and "int+string"
>in the sense of "string+str(int)" and "str(int)+string",
>what harm would be there?
>
>But for now, I think a typical approach would be
On 3/26/23 13:43, Jen Kris wrote:
My question is: what makes "choose_method" a method of the base class, called
as self.choose_method instead of UrnaryConstraint.choose_method? Is it
super(UrnaryConstraint, self).__init__(strength) or just the fact that Constraint is its
base class?
Whe
On 3/15/23 07:37, John O'Hagan wrote:
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
On 3/14/23 06:54, John O'Hagan wrote:
[...]
Read an alternative description of the waitKey behavior
>For example, waitKey(0) will display the window infinitely until any
keypress (it is
On 3/15/23 07:37, John O'Hagan wrote:
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
On 3/14/23 06:54, John O'Hagan wrote:
Doing a quick read, tkinter is not threadsafe, so diving in to a
threading solution is probably not the best approach.
But just to throw out anothe
On 3/15/23 07:37, John O'Hagan wrote:
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote:
On 3/14/23 06:54, John O'Hagan wrote:
It works up to a point - I can cycle through the images by clicking
the
button - but if I mouse-click on the displayed image (e.g. to use
the
zooming a
On 3/14/23 18:50, Rob Cliffe wrote:
On 14/03/2023 21:28, avi.e.gr...@gmail.com wrote:
Type hints are actually situationally quite useful (though yes, kind of
hard to understand when you first come across their use, largely because
of things like Union). And I wouldn't recommend their use i
On 3/14/23 06:54, John O'Hagan wrote:
Hi list
I'm trying to use cv2 to display images created as numpy arrays, from
within a tkinter app (which does other things with the arrays before
they are displayed as images). The arrays are colour-coded
visualisations of genomes and can be over a billion
On 3/13/23 17:26, Morten W. Petersen wrote:
It went into negative numbers,
when that shouldn't have been possible.
Turns out I had a very small typo, I had =- instead of -=.
Isn't it unpythonic to be able to make a mistake like that?
That is why I tell Alice it is always best to stay positi
On 3/10/23 15:15, Chris wrote:
Hi everyone. I'm new to Python and wxPython. I've got a form I use to
calculate the Sq In of a leather project.
I'm using python 3.9.13 and wxPython 4.20
I'm having the following issues:
1) When I come into the form, no grid cell has the focus set - I start
typi
On 3/10/23 22:16, Thomas Passin wrote:
On 3/10/2023 7:07 PM, aapost wrote:
which does start to break down readability due to line length, as
there isn't really an indention rule set for something uncommonly used.
but some renaming makes the pattern clearer
pids.update({&quo
On 3/9/23 15:25, Thomas Passin wrote:
>>> # this is a code snippet from a Tkinter gui app
>>> # in this case lambda is quite convenient
>>> self.btn_cancel = Button(self.progress_container, text='Cancel',
>>> command=lambda: subprocess.call('taskkill /f /im uberzip.exe',
>>> shell=Tr
On 3/10/23 18:46, aapost wrote:
main.pids.update({"messages" :subprocess.Popen(["tail", "-n",
"1", "-f", "/var/log/messages"])}),
main.pids.update({"syslog" :subprocess.Popen(["tail", "-n&quo
On 3/9/23 16:37, Cameron Simpson wrote:
On 09Mar2023 09:06, Alan Gauld wrote:
Just a note that some code formatters use a trailing comma on the last
element to make the commas fold points. Both yapf (my preference) and
black let you write a line like (and, indeed, flatten if short enough):
On 3/9/23 04:06, Alan Gauld wrote:
Thank you for the feedback, I appreciate the comments.
To add a little extra, there is actually a reason I lean toward overuse
of .config() for a lot of things even though they could be sent to the
constructor (other than that w["attribute"]= doesn't work
On 3/9/23 00:13, Thomas Passin wrote:
lol.. 'us'..
So.. to give an example from your own code:
but_play = Tk.Button(_frame, text='Play', width = BUTTONWIDTH + 1, pady
= PADY, command=lambda x=plotmgr:play_macro(x), bg = BUTTON_BG, font =
NEWFONT)
Can be written as:
b = Tk.Button(master=
On 3/8/23 16:56, aapost wrote:
Thomas > Cameron
def set_entries_enabled_state(enabled = True):
state = 'normal' if enabled else 'disabled'
for e in (e1, e2, e3):
e.config(state=state)
def config_b_and_entries(enabled = True):
state = 'norma
When making a UI there are a lot of binding/trace operations that need
to occur that lead to a lot of annoying 1 use function definitions. I
don't really see lambda use like below.
Giving 2 working lambda examples using a returned tuple to accomplish
multiple expressions - what sort of gotchas
On 3/5/23 19:02, Cameron Simpson wrote:
On 05Mar2023 10:38, aapost wrote:
Additionally (not sure if this still applies):
flush() does not necessarily write the file’s data to disk. Use
flush() followed by os.fsync() to ensure this behavior.
Yes. You almost _never_ need or want this
On 3/5/23 09:35, aapost wrote:
I have run in to this a few times and finally reproduced it. Whether it
is as expected I am not sure since it is slightly on the user, but I can
think of scenarios where this would be undesirable behavior.. This
occurs on 3.11.1 and 3.11.2 using debian 12 testing
On 3/5/23 17:43, Stefan Ram wrote:
The following behaviour of Python strikes me as being a bit
"irregular". A user tries to chop of sections from a string,
but does not use "split" because the separator might become
more complicated so that a regular expression will be required
to
On 3/5/23 09:35, aapost wrote:
Guess it could just be an annoying gotcha thing on me.
calling at least
f.flush()
in any cases where an explicit close is delayed would be the solution.
Additionally (not sure if this still applies):
flush() does not necessarily write the file’s data to disk
I have run in to this a few times and finally reproduced it. Whether it
is as expected I am not sure since it is slightly on the user, but I can
think of scenarios where this would be undesirable behavior.. This
occurs on 3.11.1 and 3.11.2 using debian 12 testing, in case the
reasoning lingers
On 1/11/23 13:21, Dieter Maurer wrote:
aapost wrote at 2023-1-10 22:15 -0500:
On 1/4/23 12:13, aapost wrote:
On 1/4/23 09:42, Dieter Maurer wrote:
...
You might have a look at `PyXB`, too.
It tries hard to enforce schema restrictions in Python code.
...
Unfortunately picking it apart for a
On 1/3/23 22:57, aapost wrote:
I am trying to wrap my head around how one goes about working with and
editing xml elements ... Back to
contemplating and tinkering..
For anyone in a similar situation, xmlschema is actually quite nice.
It didn't have the features I was looking for out o
On 1/4/23 12:13, aapost wrote:
On 1/4/23 09:42, Dieter Maurer wrote:
aapost wrote at 2023-1-3 22:57 -0500:
...
Consider the following:
from lxml import objectify, etree
schema = etree.XMLSchema(file="path_to_my_xsd_schema_file")
parser = objectify.makeparser(schema=schema, encod
On 1/4/23 09:42, Dieter Maurer wrote:
aapost wrote at 2023-1-3 22:57 -0500:
...
Consider the following:
from lxml import objectify, etree
schema = etree.XMLSchema(file="path_to_my_xsd_schema_file")
parser = objectify.makeparser(schema=schema, encoding="UTF-8")
xml_o
I am trying to wrap my head around how one goes about working with and
editing xml elements since it feels more complicated than it seems it
should be.. Just to get some feedback on how others might approach it
and see if I am missing anything obvious that I haven't discovered yet,
since maybe
40 matches
Mail list logo