On Wed, 13 Jan 2021, Chris Angelico wrote:
Do the offsets need to be integers?
ChrisA,
Yep. I totally missed that.
Thanks for seeing it.
Stay well,
Rich
--
https://mail.python.org/mailman/listinfo/python-list
On 2021-01-11 20:37, DonK wrote:
[snip]
So, what do you folks use Python for?
Since we're sharing:
- Personal information manager in the form of a tree of pages. Each page
can have code associated with it which defines functions to call when
shortcut keys are pressed, giving page-specifi
On Tue, 12 Jan 2021, Igor Korot wrote:
Keep in mind that if you target Linux, the "modern" window server
(Wayland) will not allow user code to decide the positioning and size of
the TLW.
Igor,
I suspect that Slackware will continue with X11.
Rich
--
https://mail.python.org/mailman/listinfo/p
On 12/01/2021 10.40, Michael F. Stemper wrote:
Modeling of electric power systems:
- load behavior in response to conservation load reduction
Sorry, that should have been "conservation voltage reduction".
--
Michael F. Stemper
Psalm 82:1-4
--
https://mail.python.org/mailman/listinfo/python-l
Hi,
On Tue, Jan 12, 2021, 11:44 AM Rich Shepard
wrote:
> On Tue, 12 Jan 2021, Igor Korot wrote:
>
> > Keep in mind that if you target Linux, the "modern" window server
> > (Wayland) will not allow user code to decide the positioning and size of
> > the TLW.
>
> Igor,
>
> I suspect that Slackware
Its what I searched for on this group.
I want to have an argument's presence only - value is not required.
For example, my program main.py needs to know if "-r" is present when program
is invoked.
So the value command line would be:
(1) python3 main.py -r
or...
(1) python3 main.py
I tried foll
I am delighted to announce the release 2.1.1 of Austin. If you haven't
heard of Austin before, it is an open-source frame stack sampler for
CPython, distributed under the GPLv3 license. It can be used to obtain
statistical profiling data out of a running Python application without a
single line of
On Wed, Jan 13, 2021 at 5:01 AM Dhimant Patel wrote:
>
> Its what I searched for on this group.
>
> I want to have an argument's presence only - value is not required.
> For example, my program main.py needs to know if "-r" is present when program
> is invoked.
> So the value command line would b
> I want to have an argument's presence only - value is not required.
> For example, my program main.py needs to know if "-r" is present when program
> is invoked.
> So the value command line would be:
> (1) python3 main.py -r
> or...
> (1) python3 main.py
>
> I tried following:
> parser.add_ar
On 2021-01-12, Chris Angelico wrote:
> On Wed, Jan 13, 2021 at 3:18 AM Grant Edwards
> wrote:
>>
>> On 2021-01-12, songbird wrote:
>>
>> > it can be used for pretty much anything except perhaps
>> > high pressure real time things, but i bet someone else will
>> > know that is being done too,
In comp.lang.python, Rich Shepard wrote:
>> Keep in mind that if you target Linux, the "modern" window server
>> (Wayland) will not allow user code to decide the positioning and size of
> I suspect that Slackware will continue with X11.
Even with traditional X11, geometry is "preferred" size and
On 2021-01-12, Rich Shepard wrote:
> On Tue, 12 Jan 2021, Igor Korot wrote:
>
>> Keep in mind that if you target Linux, the "modern" window server
>> (Wayland) will not allow user code to decide the positioning and size of
>> the TLW.
>
> Igor,
>
> I suspect that Slackware will continue with X11.
On Tue, Jan 12, 2021 at 7:41 AM DonK wrote:
> So, what do you folks use Python for?
>
Since everyone else is, I'll add my list.
* API lookups of various sorts (usually via HTTP requests)
* Audio analysis. Calculate the maximum and average volume of each of
many songs.
* Code generation. The audi
On Tue, 12 Jan 2021, Igor Korot wrote:
Maybe. :-)
But it looks Wayland becomes more and more popular.
Igor,
What I've read from those struggling to use Wayland, it may turn out to be a
popular as systemd. :-)
It's important to remember that while all progress involves change, not all
change
Menu options work from the menu, but not from the accelerator associated
with that menu item. My research suggests that while 'command' works for the
menu item, 'bind' is required for the associated accelerator. For example,
File -> Quit is defined this way:
self.file_menu.add_command(
On Tue, 12 Jan 2021, Grant Edwards wrote:
And those X11 users will swear at you if you override their window
managers configured window placement. Application code should not care
about or try to control window geometry. Period.
Grant,
Since this application is my own business use those users
Hi, Grant,
On Tue, Jan 12, 2021 at 12:47 PM Grant Edwards
wrote:
>
> On 2021-01-12, Rich Shepard wrote:
> > On Tue, 12 Jan 2021, Igor Korot wrote:
> >
> >> Keep in mind that if you target Linux, the "modern" window server
> >> (Wayland) will not allow user code to decide the positioning and size
Hi, Rich,
On Tue, Jan 12, 2021 at 12:52 PM Rich Shepard wrote:
>
> On Tue, 12 Jan 2021, Igor Korot wrote:
>
> > Maybe. :-)
> > But it looks Wayland becomes more and more popular.
>
> Igor,
>
> What I've read from those struggling to use Wayland, it may turn out to be a
> popular as systemd. :-)
>
On Wed, Jan 13, 2021 at 6:18 AM Igor Korot wrote:
>
> Hi, Grant,
>
> On Tue, Jan 12, 2021 at 12:47 PM Grant Edwards
> wrote:
> >
> > On 2021-01-12, Rich Shepard wrote:
> > > On Tue, 12 Jan 2021, Igor Korot wrote:
> > >
> > >> Keep in mind that if you target Linux, the "modern" window server
> >
Hi, Chris,
On Tue, Jan 12, 2021 at 1:33 PM Chris Angelico wrote:
>
> On Wed, Jan 13, 2021 at 6:18 AM Igor Korot wrote:
> >
> > Hi, Grant,
> >
> > On Tue, Jan 12, 2021 at 12:47 PM Grant Edwards
> > wrote:
> > >
> > > On 2021-01-12, Rich Shepard wrote:
> > > > On Tue, 12 Jan 2021, Igor Korot wro
On 12Jan2021 15:18, Grant Edwards wrote:
>On 2021-01-12, songbird wrote:
>> it can be used for pretty much anything except perhaps
>> high pressure real time things, but i bet someone else will
>> know that is being done too, i've just not heard of it. :)
>
>AFAIK, Python can't be used to writ
On 12Jan2021 10:40, Michael F. Stemper wrote:
>On 11/01/2021 14.37, DonK wrote:
>>I've installed Python 3.7, the PyCharm IDE and watched some Youtube
>>tutorials
>
>I would suggest that instead of watching tutorials, you open up your IDE
>and start writing stuff.
I would second that. Maybe this i
On Wed, Jan 13, 2021 at 7:00 AM Igor Korot wrote:
>
> Hi, Chris,
>
> On Tue, Jan 12, 2021 at 1:33 PM Chris Angelico wrote:
> >
> > On Wed, Jan 13, 2021 at 6:18 AM Igor Korot wrote:
> > >
> > > Hi, Grant,
> > >
> > > On Tue, Jan 12, 2021 at 12:47 PM Grant Edwards
> > > wrote:
> > > >
> > > > On
On 2021-01-12, Chris Angelico wrote:
> * Command-line calculator - pressing Ctrl-Alt-P will open up a
> terminal with Python, and that's the normal way that I do quick
> calculations
I do that a lot too.
--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
Hi, Chris,
On Tue, Jan 12, 2021 at 4:05 PM Chris Angelico wrote:
>
> On Wed, Jan 13, 2021 at 7:00 AM Igor Korot wrote:
> >
> > Hi, Chris,
> >
> > On Tue, Jan 12, 2021 at 1:33 PM Chris Angelico wrote:
> > >
> > > On Wed, Jan 13, 2021 at 6:18 AM Igor Korot wrote:
> > > >
> > > > Hi, Grant,
> > >
On Wed, Jan 13, 2021 at 9:30 AM Igor Korot wrote:
>
> Not sure I follow - frame is a TLW. Dialog is a TLW.
> Program flow is as follows:
>
> 1. Program starts with a frame
> 2. At some point the user asks to connect to the database.
> 3. Credentials dialog is shown.
>
> Now, while frame is TLW and
Chris,
On Tue, Jan 12, 2021 at 4:38 PM Chris Angelico wrote:
>
> On Wed, Jan 13, 2021 at 9:30 AM Igor Korot wrote:
> >
> > Not sure I follow - frame is a TLW. Dialog is a TLW.
> > Program flow is as follows:
> >
> > 1. Program starts with a frame
> > 2. At some point the user asks to connect to
On Wed, Jan 13, 2021 at 10:02 AM Igor Korot wrote:
> But for my dialogs (especially for dialogs where I need to ask for
> credentials) - I don't think I want
> WM to do my job.
>
> Again - we are talking positioning here and not size/client size.
>
And I don't think I want you to do the WM's job.
On 13/01/21 7:13 am, Chris Angelico wrote:
This is what different actions are for. I'd probably use
action="store_true" here; that should mean that args.register will be
set to True if "-r" was passed, or False if it wasn't.
Yes, otherwise it expects another argument following -r
containing a
On 13/01/21 4:18 am, Grant Edwards wrote:
AFAIK, Python can't be used to write device drivers for any popular OS
At least not until some crazy person embeds Python in the
Linux kernel...
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
Am 13.01.21 um 06:24 schrieb Greg Ewing:
On 13/01/21 4:18 am, Grant Edwards wrote:
AFAIK, Python can't be used to write device drivers for any popular OS
At least not until some crazy person embeds Python in the
Linux kernel...
What do you mean, "until" ?
https://medium.com/@yon.goldschm
On 2021-01-11, DonK wrote:
> So, what do you folks use Python for?
I mainly use it for writing command-line utilities. Many of them work
on either Windows or Linux, but are mostly used on Linux:
* Two-pass symbolic assembler and dissassembler for a proprietary
communications controller.
*
On 2021-01-12, songbird wrote:
> it can be used for pretty much anything except perhaps
> high pressure real time things, but i bet someone else will
> know that is being done too, i've just not heard of it. :)
AFAIK, Python can't be used to write device drivers for any popular OS
(Linux, Uni
On Wed, Jan 13, 2021 at 3:18 AM Grant Edwards wrote:
>
> On 2021-01-12, songbird wrote:
>
> > it can be used for pretty much anything except perhaps
> > high pressure real time things, but i bet someone else will
> > know that is being done too, i've just not heard of it. :)
>
> AFAIK, Python
I want my application's window (main frame) to open centered on the
monitor's screen. This code:
# open application centered on screen; set window width and height
self.appwidth = 600
self.appheight = 500
# get screen width and height
self.scrwidth = self.wi
On Wed, Jan 13, 2021 at 3:38 AM Rich Shepard wrote:
>
> I want my application's window (main frame) to open centered on the
> monitor's screen. This code:
> # open application centered on screen; set window width and height
> self.appwidth = 600
> self.appheight = 500
>
On 11/01/2021 14.37, DonK wrote:
I've installed Python 3.7, the PyCharm IDE and watched some Youtube
tutorials
I would suggest that instead of watching tutorials, you open up your IDE
and start writing stuff. Get an introductory python book (I used the
O'Reilly _Introducing Python_), start at
Hi,
On Tue, Jan 12, 2021 at 10:47 AM Chris Angelico wrote:
>
> On Wed, Jan 13, 2021 at 3:38 AM Rich Shepard wrote:
> >
> > I want my application's window (main frame) to open centered on the
> > monitor's screen.
Keep in mind that if you target Linux, the "modern" window server (Wayland)
will n
38 matches
Mail list logo