Re: Extract lines from file, add to new files

2024-01-31 Thread Rich Shepard via Python-list
placeholder should work with the existing for loop script. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Aw: Re: Re: Extract lines from file, add to new files

2024-01-30 Thread Rich Shepard via Python-list
On Tue, 30 Jan 2024, Karsten Hilbert wrote: It doesn't need to. It just sends the (pre-personalized-by-Python) mail files. Karsten, In which case, I might as well have Python format and send the messages. :-) Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Aw: Re: Extract lines from file, add to new files

2024-01-30 Thread Rich Shepard via Python-list
for attachments but has none for individual salutations. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

RE: Extract lines from file, add to new files

2024-01-30 Thread Rich Shepard via Python-list
On Tue, 30 Jan 2024, AVI GROSS via Python-list wrote: But seriously, the OP, AKA Rich, is making clear that he is making a tool for his own use. It sounds like he wants to maintain a data repository of his own with some info about his clients and then have the ability to specify a name and pop

Re: Extract lines from file, add to new files

2024-01-30 Thread Rich Shepard via Python-list
Hi, {yourname} the name in the .csv file will replace the bracketed place holder. Still much to learn and the batch of downloaded PDF files should educate me. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Extract lines from file, add to new files

2024-01-30 Thread Rich Shepard via Python-list
. Respectfully, Rich Then you just do a replace of the unique string by the salutation. Don't change the original (i.e., template), make the changes to a copy that you will output. My script is not a web application, but an emailer that allows me to contact clients and prospective clients. From the command

RE: Extract lines from file, add to new files

2024-01-29 Thread Rich Shepard via Python-list
/ Avi, I found several web pages describing how to use the python email library and tools to send individual or multiple email messages. I'll learn how to do this based on a couple of detailed examples. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

RE: Extract lines from file, add to new files [RESOLVED]

2024-01-29 Thread Rich Shepard via Python-list
On Mon, 29 Jan 2024, Rich Shepard via Python-list wrote: I'll keep searching for a solution. IIRC, someone here pointed me to <https://realpython.com/python-send-email/> and I forgot about it ... until now. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

RE: Extract lines from file, add to new files

2024-01-29 Thread Rich Shepard via Python-list
On Mon, 29 Jan 2024, Rich Shepard via Python-list wrote: No, I hadn't ... but I am reading it now. Perhaps I missed the answer to my question when reading the io module. It explains how to open/write/read files of text and binary data, not passing a variable's value from one file to a place

RE: Extract lines from file, add to new files

2024-01-29 Thread Rich Shepard via Python-list
On Mon, 29 Jan 2024, dieter.mau...@online.de wrote: Have you read "https://docs.python.org/3/library/io.html#module-io;? Dieter, No, I hadn't ... but I am reading it now. Many thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

RE: Extract lines from file, add to new files

2024-01-29 Thread Rich Shepard via Python-list
On Fri, 12 Jan 2024, Rich Shepard via Python-list wrote: For my use 1) the salutation and email address (always with an '@') are sequential and 2) I'm developing the script to extract both from the same file. I've looked at my Python books "Python Crash Course," "E

RE: Extract lines from file, add to new files

2024-01-12 Thread Rich Shepard via Python-list
same file. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Extract lines from file, add to new files

2024-01-11 Thread Rich Shepard via Python-list
On Thu, 11 Jan 2024, Piergiorgio Sartor via Python-list wrote: Why not to use bash script for all? Piergiorgio, That's certainly a possibility, and may well be better than python for this task. Thank you, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Extract lines from file, add to new files

2024-01-11 Thread Rich Shepard via Python-list
bout which encodings you allow - which for email "names" is something you can't actually control. Mats, Not an issue for me. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Extract lines from file, add to new files

2024-01-11 Thread Rich Shepard via Python-list
On Thu, 11 Jan 2024, MRAB via Python-list wrote: From the look of it: 1. If the line is empty, ignore it. 2. If the line contains "@", it's an email address. 3. Otherwise, it's a name. MRAB, Thanks. I'll take it from here. Regards, Rich -- https://mail.python.org/mailman/listi

Extract lines from file, add to new files

2024-01-11 Thread Rich Shepard via Python-list
Hobbs ho...@some.com Nancy na...@herown.com Sluggo slu...@another.com Having extracted salutations and addresses I'll write a bash script using sed and mailx to associate a message file with each name and email address. I'm unsure where to start given my lack of recent experience. TIA, Rich

where is requests

2023-05-23 Thread Rich Osborne
I have install Python 3.11.3 but my import requests does not work. I found documentation that refers to C:\python35 but I am on 3.11.3. Where do I find requests? Sent from Mail for Windows --

Re: Cannot install pkg_resources using pip

2023-04-17 Thread Rich Shepard
to worse, I'd reinstall the distro package. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot install pkg_resources using pip [RESOLVED]

2023-04-17 Thread Rich Shepard
On Sun, 16 Apr 2023, Rich Shepard wrote: How do I clean this up? My thanks for the suggestions and ideas you sent me on this issue. I've resolved it by not trying to build pulseaudio-equalizer. I don't need it because I learned this morning that my Yamaha CM500 headset clearly heard the Zoom

Re: Cannot install pkg_resources using pip

2023-04-17 Thread Rich Shepard
On Sun, 16 Apr 2023, Thomas Passin wrote: Sorry, Rich, I've never dealt with this so someone else will have to give suggestions. Thomas, This is all new to me, too. I would try to see if there are any versions available. It could be that meson says it needs version x but only version y >

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Rich Shepard
On Sun, 16 Apr 2023, Rich Shepard wrote: I'll download the installer from there. But, I still cannot install the pkg_resources module that meson wants to start the build of pulseaudio-equalizer: # pip install pkg_resources ERROR: Could not find a version that satisfies the requirement

Re: Cannot install pkg_resources using pip

2023-04-16 Thread Rich Shepard
uming it's correct. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Cannot install pkg_resources using pip

2023-04-16 Thread Rich Shepard
There is no python3.7 here: # ls /usr/bin/python3.7 ls: cannot access '/usr/bin/python3.7': No such file or directory How do I clean this up? TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Can you process seismographic signals in Python or should I switch to Matlab ?

2023-03-13 Thread Rich Shepard
not read Wes McKinney's "Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython" I encourage you to do so. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Can you process seismographic signals in Python or should I switch to Matlab ?

2023-03-13 Thread Rich Shepard
that data into a common usable form, cleaned and errors removed. That will be a lot of effort no matter what language you use. In the Matplotlib lesson you pointed to, the work was already done, for one one earthquake at one location. Wouldn't Pandas help here? Rich -- https://mail.python.org/mailman

Re: Tkinter module test: widget class not inserted in application frame

2022-06-18 Thread Rich Shepard
On Sat, 18 Jun 2022, Peter J. Holzer wrote: There is a comma (U+002C) here ... And a dot (U+002E) here. That was a typo when I wrote the message. And I usually add a space after commas and surrounding equal signs, all for easier reading. Thank you, Rich -- https://mail.python.org/mailman

Re: Tkinter module test: widget class not inserted in application frame

2022-06-17 Thread Rich Shepard
, Dennis, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter module test: widget class not inserted in application frame

2022-06-17 Thread Rich Shepard
() ) should be this: self.inputs['First name'] = cc.LabelInput( self, 'fname', input_class = ttk.Entry, input_var = tk.StringVar() ) MRAB, Ah! I must have misread Alan Moore's examples, then. I'll need to fix all my views. Thank you, Rich

Re: Tkinter module test: widget class not inserted in application frame

2022-06-17 Thread Rich Shepard
=('EWNS')) self.columnconfigure(0, weight=1) If not, where do I specify the instance of the ContactNameInput class? Thanks, Rich -- Richard Shepard, Ph.D. The Environmental Issues Doctor Applied Ecosystem Services, LLC Troutdale, OR 97060 USA503-667-4517 www[dot]appl-ecosys[dot]com -- https://mail.python.org/mailman/listinfo/python-list

Tkinter module test: widget class not inserted in application frame

2022-06-17 Thread Rich Shepard
cnf) File "/usr/lib64/python3.7/tkinter/__init__.py", line 2262, in _setup self.tk = master.tk AttributeError: type object 'ContactNameInput' has no attribute 'tk' ------ I'm not correctly placing the NameInput class in the NameApplication frame. What have I missed? Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: multicolumn table widget

2022-06-06 Thread Rich Shepard
hovers over it without needing to be limited to a single column. When I test the module (I'm still writing it) I'll learn what needs fixing. Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: multicolumn table widget

2022-05-31 Thread Rich Shepard
regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: multicolumn table widget

2022-05-31 Thread Rich Shepard
the scrollbar(s) separately and then link them. This I expected. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Tkinter: multicolumn table widget

2022-05-31 Thread Rich Shepard
tk.StringVal() and one tk.Text() which usually has multiple rows related to that contact event. I want to learn how to create the table so each row has the contents of each of the four columns and I can scroll down and up to look at the history. All help is certainly appreciated. Rich -- https

Re: Unable to open Python

2022-03-28 Thread Rich Shepard
operating system do you use? Python is a programming language, not an application. It is not 'opened' but used to do a particular job. You use the language to tell the computer what to do. What do you want to do with Python? Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter widgets for desktop database application

2021-07-14 Thread Rich Shepard
with Python3 it's one less thing for non-techical users to struggle with if they decide to use this application. Thanks for your suggestion, Rich -- https://mail.python.org/mailman/listinfo/python-list

Tkinter widgets for desktop database application

2021-07-13 Thread Rich Shepard
little to make this decision and want advice, suggestions, and recommendations from experienced developers. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Faker package [RESOLVED]

2021-06-19 Thread Rich Shepard
$ faker -r=10 -o temp.out name for 10 fake names. Thank you. I didn't pick that up when I read the document. Much appreciated, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Faker package

2021-06-18 Thread Rich Shepard
nd_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'faker.names' [rshepard@salmo ~]$ It does not work from the bash command line as a user or as root. The "root shell prompt (#)" suggests to me that it's Linux, so if you're using Window

Re: Faker package

2021-06-18 Thread Rich Shepard
On Fri, 18 Jun 2021, Terry Reedy wrote: I would try using the 'given' function/decorator of hypothesis (on pypi) to generate random data that conforms to whatever specification. Thank you, Terry. I'll do that. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Faker package

2021-06-18 Thread Rich Shepard
generate the equivalent of a database row worth of data? That is, a set of strings of different types that can then be inserted into the testing database? Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tksheet

2021-06-17 Thread Rich Shepard
of the space on BeagleBone Black so I didn't install it there). Dennis, In the 1980s I looked closely at Pascal. More recently I did so again because the local linux/UNIX group had a presentation on its use. Decided another language was not for me. Thanks, Rich -- https://mail.python.org/mailman

Re: tkinter: tksheet

2021-06-17 Thread Rich Shepard
, multitable queries is always a good idea. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tksheet

2021-06-17 Thread Rich Shepard
, it may be faster to just define the key structure for Python's internal sort() function than to go back out to the database server, wait for it to gather the desired fields and sort them, then transfer all the data back to your script. Dennis, That's a possibility. Thanks, Rich -- https

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
to limit the software they need to install and maintain in order to run it. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
On Thu, 17 Jun 2021, dn via Python-list wrote: Use the DBMS by retrieving the data in the desired sequence? dn, Yep. That's what I thought would be the best approach. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
an come up with is that if a header column is selected you sort the data and reload the table. My naive idea is to use two queries, one selects * from the company table ordered by nunber, the other by name. The UI offers two radiobuttons when viewing the results, one for each sort column. Thanks, Ric

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
name). I did not see anything about sorting. tksheet is generic 'table', not a database viewer The two applications I'm building are both database applications. If tksheet() is not the most appropriate widget to display database tables what alternative would be better? Thanks, Rich -- https

tkinter: tksheet

2021-06-16 Thread Rich Shepard
with tksheet perhaps you can answer my questions about it's capabilities. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter8.6: date picker

2021-06-11 Thread Rich Shepard
for multiple-table databases where joins involve several tables, and I've never used GTK+ for UI. One of the applications I'm developing will be for my clients to use. Most of them run some flavor of Windows so I want to keep the software requirements simple: Python3 and SQLite3. Regards, Rich

Tkinter8.6: date picker

2021-06-11 Thread Rich Shepard
I need a date picker for a couple of Python-3.7.2/Tkinter8.6 applications. There seem to be some available on the web. If you have experience with a date picker (not a calendar that holds appointments for a given date) I'd like your suggestions and recommendations for one. TIA, Rich -- https

Re: Recommendation for drawing graphs and creating tables, saving as PDF

2021-06-11 Thread Rich Shepard
to state "connect A to B", "connect C to B", "connect B to D", and the library would do the whole layout. JEM, PSTricks (and yes, I could obviously use LaTeX ...) They work well together. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Neither pdb or print() displays the bug [FIXED]

2021-06-08 Thread Rich Shepard
On Tue, 1 Jun 2021, Rich Shepard wrote: I'm stuck with neither approach (pdb, print()) working. I moved the database code to a separate module, datasource.py, and when I run the activitytypes.py module (using pdb and having entered print() statements at various places in both the datasource

Re: Posting code on stackoverflow

2021-06-06 Thread Rich Shepard
On Sat, 5 Jun 2021, Terry Reedy wrote: Last time I tried *before*, it did not work. paste, reselect (a nuisance) and click does. Terry, I had tried that and it didn't work any better. Bounding the code with two sets of three backticks does work. Regards, Rich -- https://mail.python.org

Re: Neither pdb or print() displays the bug

2021-06-06 Thread Rich Shepard
On Sun, 6 Jun 2021, Fabio Zadrozny wrote: Hint: you should be able to use https://pypi.org/project/pytest-qt/ to unit-test a PyQt application... Fabio, Thank you for confirming this. I hadn't remembered the name so your URL is really helpful. Regards, Rich -- https://mail.python.org

Re: Posting code on stackoverflow

2021-06-06 Thread Rich Shepard
On Sun, 6 Jun 2021, joseph pareti wrote: you need to put the code between 2 lines defined as follows: ``` then it will be formatted for you Thanks, Joseph. I figured that out on the web page. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Posting code on stackoverflow

2021-06-05 Thread Rich Shepard
there are blank lines before and after the code block. Just now I noticed a link 'code' along the top of the window. Clicking on that I read that a code block can be identified as such by surrounding it with sets of three backticks (```). That worked. Regards, Rich -- https://mail.python.org

Posting code on stackoverflow

2021-06-05 Thread Rich Shepard
. As I've not asked a question ther for a long time, and it didn't involve long lines of code, I need to learn a) how to enter code if it's not just clicking on the 'code' box before pasting text and b) how to keep code lines from wrapping so a horizontal scroll bar is made available. TIA, Rich -- https

Re: Neither pdb or print() displays the bug

2021-06-02 Thread Rich Shepard
. While I don't know if there is a convenient way to test the GUI everything else should run reliably *before* connecting it with the GUI. Peter, I believe there is a way to apply unit tests to PyQt and I'll certainly learn to take this testing-while-developing approach. Thanks, Rich -- https

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
ent/business_tracker/activitytypes.py(2)() -> import logging (Pdb) s --Call-- (978)_find_and_load() (Pdb) s Now I'll go learn what this means. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
to confirm that it is doing so). Will report results when they're available. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
much to learn about using python's logging capabilities. I'll keep looking. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
On Tue, 1 Jun 2021, Rich Shepard wrote: The QSize() statement is never reached. Correction: the window is 800 x 600, but it's still empty. Rich -- https://mail.python.org/mailman/listinfo/python-list

Neither pdb or print() displays the bug

2021-06-01 Thread Rich Shepard
on the process to find where the bug lives since I can't seem to find it with print() or line-by-line in pdb. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
cause a) that's what we expected to see and b) line printer output on green-barred paper was not that clear, even with fresh ribbons. That lesson has stuck with me ever since. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
emembering how I debugged code years ago with stubs and print() statements and use pdb with them. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
that don't issue a traceback or obvious wrong answer such as my module displaying an empty window with no widgets. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
=AOvVaw12BuzlEMVXrEuOFLoQLpFX Thanks, Dennis. It looked like an environment variable but I hadn't seen that with the python2 winpdb. I'll add that to ~/.bash_profile and see what happens. Enjoy the holiday weekend, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
On Fri, 28 May 2021, MRAB wrote: Have you looked at the package's repository? MRAB, It looks like this is the one: https://github.com/bluebird75/winpdb That's where I got it. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

RE: Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
RPDB2 startup: Say you have a script x.py to debug, with command-lin arguments arg0, arg1 etc. Then to start RPDB2, type python rpdb2.py x.py arg0 arg1 ..." I don't know of any linux utility whose name is in all uppercase letters. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
eed advice on debuggng this module (when run only an empty window is displayed) and using winpdb_reborn. TIA, Rich $ winpdb activitytype.py 08:20:06.052 rpdb2.py:6148 MainThread/140081468266240 __setrecursionlimit(): rl = 1000 08:20:06.348 winpdb.py:3006 MainThread/140081468266240 set_font():

Re: Ad-hoc SQL query builder for Python3?

2021-04-27 Thread Rich Shepard
that can be embedded in the application so the user doesn't need to install another dependentcy package and maintain it. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Rich Shepard
On Sat, 24 Apr 2021, Rich Shepard wrote: My web searches are not finding what I need to include in an application I'm building: an ad-hoc sql query builder. For those interested I've found a couple of possibilities: PyPika and SQLbuilder. I'll be looking deeply into them to learn

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Rich Shepard
. This is not a console application with a CLI; it has a GUI so there's no direct access to the backend db from within the application. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Rich Shepard
what they want directly on the database ignoring the application entirely. If they knew enough to do this they would be using a database rather than a spreadsheet in the first place. :-) Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
at it from that perspective. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
to include in their applications. I'm looking for a F/OSS tool and I'm sure these are available somewhere. Suggestions are needed. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Ann: New Python curses book

2021-04-15 Thread Rich Shepard
. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Ann: New Python curses book

2021-04-14 Thread Rich Shepard
On Wed, 14 Apr 2021, Alan Gauld via Python-list wrote: The paper version should be fine (apart from one error on p44 which has now been fixed!). Alan, What's the error and correction so I can change it in my dead tree version? Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: UI design: combobox or radiobuttons?

2021-04-13 Thread Rich Shepard
to all values on the screen then that is more noticeable and thus more readable than a single small combobox choice lurking in a corner somewhere. Excellent points, Alan. Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

UI design: combobox or radiobuttons?

2021-04-13 Thread Rich Shepard
that a set of radio buttons would also work. While a set of radiobuttons occupies more room on the parent widget than does a combobox are there any technical or user issues that would suggest using one over the other? TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Rich rauenzahn
Change by Rich rauenzahn : -- nosy: +rrauenza ___ Python tracker <https://bugs.python.org/issue43833> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Comparing text strings

2021-04-13 Thread Rich Shepard
the list: jak, Yes, it would be the version and build numbers that differ when two files have the same initial string (application name). Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Comparing text strings

2021-04-13 Thread Rich Shepard
know in advance the build numbers if it's that variable that's changed. The list of installed files is (currently) less than 500 lines so a character-by-character comparison when two rows begin with the same string will not take long. Thanks again, Rich -- https://mail.python.org/mailman

Re: Comparing text strings

2021-04-12 Thread Rich Shepard
nd abc-1.0_2_SBo.tgz. The more involved route will be taken. Thanks! Rich -- https://mail.python.org/mailman/listinfo/python-list

Comparing text strings

2021-04-12 Thread Rich Shepard
. All suggestions welcome. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: editor recommendations?

2021-02-26 Thread Rich Shepard
ail and web browsing (back when a text-based browser was sufficient.) Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing a Python3 ttk.Notebook

2021-01-15 Thread Rich Shepard
On Fri, 15 Jan 2021, Terry Reedy wrote: IDLE's settings dialog uses a ttk.Notebook. The file is Lib/idlelib/configdialog.py. Thanks, Terry! I completely forgot that. I'll study the IDLE's code and learn from that. Stay well, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing a Python3 ttk.Notebook

2021-01-15 Thread Rich Shepard
On Fri, 15 Jan 2021, Rich Shepard wrote: Progress: I didn't put the notebook on the main window using grid. Now I need to find how to specify the position so it's at the top of the window. I'll read the options on grid. The notebook tabs are placed on the grid as nb.grid(row=0, column=0

Re: Writing a Python3 ttk.Notebook

2021-01-15 Thread Rich Shepard
On Fri, 15 Jan 2021, Rich Shepard wrote: The file 'application.py' is attached. If I had better docs here I could probably work a lot of this out by myself. Progress: I didn't put the notebook on the main window using grid. Now I need to find how to specify the position so it's at the top

Re: Writing a Python3 ttk.Notebook

2021-01-15 Thread Rich Shepard
the proper syntax on a separate file opens a window with the tabs displayed. The file 'application.py' is attached. If I had better docs here I could probably work a lot of this out by myself. Regards, Rich #!/usr/bin/env python3 # main file to start application. from os import environ impor

Re: Writing a Python3 ttk.Notebook

2021-01-15 Thread Rich Shepard
. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Writing a Python3 ttk.Notebook

2021-01-15 Thread Rich Shepard
ext='Activities') File "/usr/lib64/python3.9/tkinter/__init__.py", line 2346, in __getattr__ return getattr(self.tk, attr) AttributeError: '_tkinter.tkapp' object has no attribute 'add' Explanation of the error and suggestions for ttk.notebook references are needed. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: FridayFinking - Was: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Rich Shepard
ne offered a great philosophy of life. "We can do nothing about growing older," she told me, "but we can do everything about growing old." How true. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Application window geometry specifier

2021-01-12 Thread Rich Shepard
users can swear all they want. :-) If I decide to post all the code on github other can modify it to their heart's delight. They can even make it work on their wrist computer (formerly known as a wrist watch.) Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Binding menu accelerator to a callback

2021-01-12 Thread Rich Shepard
his case). My web research hasn't found a solution since examples for using bind() aren't in menus. Do I need another method that associates accelerators with the callbacks? Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Application window geometry specifier

2021-01-12 Thread Rich Shepard
involves progress. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Application window geometry specifier

2021-01-12 Thread Rich Shepard
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/mailma

Re: Application window geometry specifier [RESOLVED]

2021-01-12 Thread Rich Shepard
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

Application window geometry specifier

2021-01-12 Thread Rich Shepard
eometry) _tkinter.TclError: bad geometry specifier "600x500+340.0+262.0" As the geometry string represents window width times window height plus x-offset plus y-offset I'm not seeing my error. Please show me what's wrong with specifier. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >