On 17/06/2021 00:15, Rich Shepard wrote:
> When I view my contacts table it needs to includes attributes from the
> company, people, and contacts tables so I can view all prior contacts with
> that person.
Sounds like a job for a database view.
Can you modify the database schema? Could you create
On 13/07/2021 21:24, Rich Shepard wrote:
> What have other developers used for the UI on a stand-alone database
> application not using a web browser?
Mostly I just use a scrolledlistbox and a set of functions for
formatting the data into columns for display. The big snag is
you can't do spreads
On 21/08/2021 19:37, Tony Genter wrote:
>Tkinter stopped working overnight from 8/20/2021 to 8/21/2021. Last night
>I was working on tutorials to work on a GUI and this morning every file
>that uses tkinter is broken stating that no module `tkinter' exists.
Are you sure you were runni
On 28/08/2021 21:50, Hope Rouselle wrote:
>>> roll_count = 0
>>> while True:
>>> outcome = roll_two_dice()
>>> roll_count += 1
>>> if outcome[ 0 ]== outcome[ 1 ]: break
>>> return roll_count, outcome[ 0 ]
>>
>
> Wait, I'm surprised ``outcome'' is still a valid name at the
> return-sta
On 29/08/2021 11:28, Hari wrote:
> i was download ur python software but it is like boring user interface
I agree it is a boring user interface. Just 3 chevrons: >>>
You can change it a little if you want but ultimately its
just an invitation to type commands.
What kind of interface did you have
On 31/08/2021 13:45, Chris Angelico wrote:
> (I find the Ireland situation particularly amusing.
Time zones and daylight saving arrangements in particular are a
nightmare at the micro level. I once worked on a large customer
support application which required all dates/times to be viewable
in UT
On 31/08/2021 22:13, Chris Angelico wrote:
> But ultimately, it all just means that timezones are too hard for
> humans to handle, and we MUST handle them using IANA's database. It is
> the only way.
Except for the places that don't follow the IANA scheme and/or
dynamically change their time sett
On 31/08/2021 22:32, Chris Angelico wrote:
> If we could abolish DST world-wide, life would be far easier. All the
> rest of it would be easy enough to handle.
We tried that in the UK for 2 years back in the '70s and very
quickly reverted to DST when they realized that the number
of fatalities amo
On 31/08/2021 23:31, Chris Angelico wrote:
> Ah, good to know. I think that actually makes a lot of sense; in the
> US, they try to let everyone pretend that the rest of the world
> doesn't exist ("we always change at 2AM"), but in Europe, they try to
> synchronize for the convenience of commerce
On 02/09/2021 19:28, Chris Angelico wrote:
>> Except for the places that don't follow the IANA scheme and/or
>> dynamically change their time settings on a whim. To be complete
>> you need the ability to manually override too.
>>
>
> What places are those?
Mainly small non-tech oriented places
On 02/09/2021 20:11, MRAB wrote:
>> In one of them (I can't recall which is which) they change on the 4th
>> weekend of October/March in the other they change on the last weekend.
>>
>>
> In the EU (and UK) it's the last Sunday in March/October.
>
> In the US it's second Sunday in March and the f
On 02/09/2021 19:30, Chris Angelico wrote:
>> Without DST the schools opened in the dark so all the kids
>> had to travel to school in the dark and the number of
>> traffic accidents while crossing roads jumped.
>
> How do they manage in winter?
That was the winter. Sunrise wasn't till 10:00 or
On 03/09/2021 18:37, Chris Angelico wrote:
Without DST the schools opened in the dark so all the kids
had to travel to school in the dark and the number of
traffic accidents while crossing roads jumped.
>
> Are you saying that you had DST in winter, or that, when summer *and*
> DST
On 07/09/2021 15:53, Grant Edwards wrote:
> I remember engineering manager I worked with about 35 years ago who
> used a set of C macros to try to make his code look as much like BASIC
> as possible:
>
> #define IF if (
> #define THEN ) {
> #define ELSE } else {
> #define ENDIF }
> ...
On 09/09/2021 22:36, dn via Python-list wrote:
> Even in fairly modest Python constructs, we quickly repeal the one-in,
> one-out philosophy because try...except operates by providing another
> exit-path.
Exceptions are exceptional by their nature (or should be!) As such
they can arguably be excu
On 10/09/2021 00:47, Terry Reedy wrote:
> even one loop is guaranteed.) "do-while" or "repeat-until is even rarer
> since fractional-loop include this as a special case.
Is there any empirical evidence to support this?
Or is it just a case of using the tools that are available?
In my experience
On 10/09/2021 16:36, MRAB wrote:
>> while...else...
>>
>> executes the else if the body of the loop does NOT get executed.
>>
>> for...else...
>>
>> executes the else iff ALL iterations of the for loop DO complete.
>>
> [snip]
>
> In both cases, it executes the 'else' part if it didn't break out
On 10/09/2021 19:49, Stefan Ram wrote:
> Alan Gauld writes:
>> OK, That's a useful perspective that is at least consistent.
>> Unfortunately it's not how beginners perceive it
> ...
>
> Beginners perceive it the way it is explained to them by
> their teacher.
I'm not sure that's true. Most
On 11/09/2021 15:41, Peter J. Holzer wrote:
> How is C's do/while loop more horrible than Pascal's repeat/until?
Because it is very hard to spot or distinguish from a normal
while loop.
while condition ;
Is a valid (and fairly common) loop in C
so code that has
do{
code
}
while condition;
L
On 12/09/2021 09:11, jak wrote:
> if the only way to terminate a 'while True' loop is by using the 'break'
> statement, why is it allowed to add the 'else' statement which will only
> contain dead code?
>
> while True:
> break
> else:
> print('dead code')
>
Because to the interpreter
On 16/09/2021 06:50, af kh wrote:
> Hello,
> I was doing some coding on a website called replit
I have no idea what that is but...
> after answering 'no' or 'yes' after the last sentence I wrote,
> the Python window shut off,
That's what you told it to do in the code.
Regardless of which answe
On 01/02/2020 12:06, Souvik Dutta wrote:
> I was making a pyqt5 project and I ran into a problem. I want a button in
> one window to add a label in another window when clicked upon. But that is
> not happening.
What is happening? Don't expect us to run your buggy code!
> Now the no. Of labels de
On 01/02/2020 12:06, Souvik Dutta wrote:
> not happening. Now the no. Of labels depend upon something, so I decided to
> use a for loop which is not working. Attaching the code below. Can you help?
I just spotted something else odd in your code:
def initUi(self):
...
self.n = {}
During my Covid19 lock-down I thought I'd spend my time translating
the "Linux Curses Programming HOWTO" document into Pythonic curses.
One of the functions discussed that does not appear to have
a Python equivalent is attr_get() which gets the current
attributes.
There are functions aplenty for
On 19/05/2020 19:10, Manfred Lotz wrote:
> Hi there,
> I am asking myself if I should preferably use single or double quotes
> for strings?
Personally laziness wins every time. Single quotes only require one
finger from the home position using my right hand, double quotes
require two and a big mov
On 20/05/2020 01:48, Cameron Simpson wrote:
> It may be that the person who wrote the curses module simply got tired.
That was my assumption. Although the implementation includes some
functions that are a lot more obscure. Usually when one is missing there
is an alternative with the same effect
On 19/05/2020 20:53, Alan Gauld via Python-list wrote:
> One of the functions discussed that does not appear to have
> a Python equivalent is attr_get() which gets the current
> attributes.
OK, Using inch() I've written the following function:
def attr_get(win):
""
While studying the curses module I was struck by the paucity of
tutorial documentation for the Python version. Fortunately I
know C and used to write curses applications back in the 80s/90s
so I turned to the C tutorials. However, there are quite a lot
of differences between the Python wrapper imp
On 16/06/2020 16:38, Alan Gauld via Python-list wrote:
> This is now available as a PDF and I'd be interested in review comments.
Just to add that I can send a zip of the code files too.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.co
On 16/06/2020 19:34, Karsten Hilbert wrote:
>> I therefore took it on myself to do a translation of the Linux
>> Documentation Project's "Curses HowTo" by Pradeep Padala into Python.
>>
>> This is now available as a PDF and I'd be interested in review comments.
>
> I'd be interested in having a lo
On 25/12/2023 05:34, geetanajali homes via Python-list wrote:
>> import numpy as np
>> import pandas as pd
>> import random
>> import matplotlib.pyplot as plt
>> %matplotlib inline
>>
>> I get an error on the last line. I am running this code in Idle Python
>> 3.4.4 Shell...
Python names c
On 29/12/2023 01:05, Félix An via Python-list wrote:
> I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI
> designer in Visual Studio. Is there anything similar for Tk? How about
> Qt?
There are any number of them but few that work well. The best
I found was Dabo but it uses it
On 03/01/2024 22:47, Guenther Sohler via Python-list wrote:
> Hi,
>
> In my cpython i have written quite some functions to modify "objects".
> and their python syntax is e.g.\
>
> translate(obj, vec). e.g whereas obj is ALWAYS first argument.
> However, I also want to use these functions as clas
On 04/01/2024 04:17, Thomas Passin via Python-list wrote:
>> I'm probably missing something obvious here but can't you
>> just assign your function to a class member?
>>
>> def myFunction(obj, ...): ...
>>
>> class MyClass:
>> myMethod = myFunction
>
> That works if you assign the function t
On 25/02/2024 03:58, Steve GS via Python-list wrote:
import tkinter as tk
Ww = None
def on_configure(*args):
global Ww
Ww = root.winfo_width()
print("Ww Inside = <" + str(Ww) + ">")
root = tk.Tk()
root.bind('', on_configure)
root.mainloop()
print("Ww Outside = <" + str(Ww)
On 26/02/2024 07:56, Steve GS via Python-list wrote:
> Then there is that discovery
> element: Why is my original
> idea not working? I still
> cannot pass the value back
> from the function. What is
> different about this function
> that others would have given
> me the value?
There is nothing
On 26/02/2024 11:02, Steve GS via Python-list wrote:
> Although your code produces the value of Ww outside the function,
> I do not see how I can use the value of Ww unless I close the program.
You have to use a function that operates inside the mainloop.
Thats the nature of event driven programs
On 27/02/2024 07:13, Steve GS via Python-list wrote:
> Aside from using it to resized
> the window, is there no way to
> know the last value of the
> change for use in the program?
The last value would be the current width.
And you know how to get that as shown in
your configure function:
Ww = r
On 05/03/2024 22:46, Grant Edwards via Python-list wrote:
> Unfortunately (presumably thanks to SEO) the enshittification of
> Google has reached the point where searching for info on things like
> Python name scope, the first page of links are to worthless sites like
> geeksforgeeks.
And not just
On 10/03/2024 18:08, Sanskar Mukeshbhai Joshi via Python-list wrote:
> I had made my project in BCA in Python. When I had complete my
> project and run the program, at that time I got the error in
> runnig my project. The error was ModuleNotFoundError: No module named 'flask'.
Flask is a third
On 30/03/2024 07:04, Greg Ewing via Python-list wrote:
> On 30/03/24 7:21 pm, HenHanna wrote:
>> https://xkcd.com/1306/
>> what does SIGIL mean?
>
> I think its' a Perl term, referring to the $/@/# symbols in front of
> identifiers.
There seem to be several derivation
On 10/04/2024 19:50, WordWeaver Evangelist via Python-list wrote:
> I have a simple question. I use the following textPrompt in some of my Jython
> modules:
> '\n[1;33mYour choice is? (A B C D E): ', maxChars=1, autoAccept=False,
> forceUppercase=True)
> Is there a way to add an ANSI color cod
On 14/05/2024 18:44, Gordinator via Python-list wrote:
> I wish to write a terminal emulator in Python. I am a fairly competent
> Python user, and I wish to try a new project idea. What references can I
> use when writing my terminal emulator? I wish for it to be a true
> terminal emulator as we
On 18/05/2024 19:12, Piergiorgio Sartor via Python-list wrote:
>> So venvs make managing all that pretty convenient. Dunno why everybody's
>> so down on venvs...
Not so much down on them, they are just one extra step that's
mostly not needed(in my use case)
> Only people which are *not* using p
On 08/06/2024 20:18, Rob Cliffe via Python-list wrote:
> OK, here is the advanced version:
> import os
> class _cls(object):
> def __repr__(self):
> os.system('cls')
> return ''
> cls = _cls()
>
> Now when you type
> cls
> it clears the screen.
For me on a Mac it clears t
On 06/07/2024 11:49, Rob Cliffe via Python-list wrote:
> If the file does not exist I want to take appropriate action, e.g.
> print an error message and abort the program.
> I might write it like this:
>
> try:
> with open(FileName) as f:
> for ln in f:
> print("I
On 14/08/2024 23:32, Left Right via Python-list wrote:
>> it became simple and straightforward to
>> download and install packages.
>
> I think the right word for this is "delusional".
I agree. But even if it worked it doesn't alter the fact
that by not having batteries included it puts the onus
On 04/11/2024 15:32, Ulrich Goebel via Python-list wrote:
> I would like to build a class ScrolledListbox,
I assume like the one that used to be available via the Tix module?
It's a great shame that Tix is gone, it had a lot of these useful
widgets, but they were all wrappers around Tcl/Tk's Tix
On 31/10/2024 20:50, Cameron Simpson via Python-list wrote:
> That looks to me like quoted-printable. This is an encoding for binary
> transport of text to make it robust against not 8-buit clean
...
> If you're just dealing with this directly, use the `quopri` stdlib
> module: https://docs.py
On 11/01/2025 14:28, Chris Green via Python-list wrote:
> I'm looking for Python packages that can help with text mode input,
The standard package for this is curses which comes as part
of the standard library on *nix distros.
> What I'm specifically after is a way to provide a default value that
On 14/01/2025 00:20, Grant Edwards via Python-list wrote:
> On 2025-01-13, Alan Gauld via Python-list wrote:
>
>> All of that is possible in curses, you just have to code it.
>
> All of that is easy with curses in C. Unfortunately, the high level
> "panel" and &q
On 15/01/2025 00:54, Grant Edwards via Python-list wrote:
> are your friend. If that's not sophisticated enough the gnu "readline"
> library with a simple command processor is a common next step.
On that front the cmd module in Python is often overlooked
but is useful for structuring a non-GUI-li
On 15/01/2025 00:41, Keith Thompson via Python-list wrote:
> Alan Gauld writes:
>> On 11/01/2025 14:28, Chris Green via Python-list wrote:
>>> I'm looking for Python packages that can help with text mode input,
>>
>> The standard package for this is curses which comes as part
>> of the standard li
On 28/05/2025 00:32, Alan Gauld via Python-list wrote:
> The archives are still there and the sign-up page seems to
> work, but it doesn't recognise me. I tried signing up as
> a new member with a different address and that seems to work(ie no
> errors) but I still don;t see any
I am the moderator of the python tutor mailing list.
Or at least I was. It seems the tutor list has been deleted.
I came back from vacation to find that I can't access it.
Nobody told me anything in advance. I've tried emailing
postmaster but got no response.
I wonder if anyone here has any idea
101 - 155 of 155 matches
Mail list logo