pylint/pyreverse with Python3

2018-05-13 Thread Rich Shepard
knowledge with me. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: pylint/pyreverse with Python3 [RESOLVED]

2018-05-14 Thread Rich Shepard
/usr/bin/pylint and /usr/bin/pyreverse are python scripts I can change the first line to call python3 rather than python. I should have looked at this before writing. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: pylint/pyreverse with Python3

2018-05-14 Thread Rich Shepard
basic installation (ignoring dependendices which you'll discover when you try to run it), type python setup.py install or python3 setup.py install from within the directory with the egg, wheel, or source code. HTH, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax oddities

2018-05-17 Thread Rich Shepard
a received message (mail list or direct) we want the reader to understand what we write. Trimming away all but the pieces to which we respond makes communication more clear and, we hope, more effective. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
rience has something to do with your MUA. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: If anyone wants to take a stab at my problem, its subject line is "Flask Failure." Tamara, I saw that earlier this morning -- on the mail list. As I know nothing about flask I deleted it without reading. Rich -- https://mail.python.org/mailma

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
ts who follow newsgroups using firefox, chromium, and thunderbird. I use alpine (which is text-based since e-mail messages are text it's a perfect fit) on Slackware linux. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
one knows how to help. Happens quite a bit. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, T Berger wrote: Please define YMMV, MUA. Tamara, Your Milage May Vary. Here's a list when you have the time and inclination: <https://www.allacronyms.com/email/abbreviations>. Best regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
Transport Agent, such as postfix, exim, and qmail which sends and receives messages). Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Rich Shepard
On Fri, 15 Jun 2018, Larry Martell wrote: Oh, ... MUA == Mail User Agent. I thought it was Made Up Acronym Larry, Could be; depends on the context. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Rich Shepard
led themselves Dutch. Marko, Thank you for an answer to a question it never occurred to me to ask. I appreciate the lesson. Carpe weekend, Rich -- https://mail.python.org/mailman/listinfo/python-list

Python in the news

2018-07-23 Thread Rich Shepard
The lead article in science section and technology section of this week's 'The Economist' is about Python: <https://www.economist.com/science-and-technology/2018/07/21/python-has-brought-computer-programming-to-a-vast-new-audience> Enjoy, Rich -- https://mail.python

Re: curses, ncurses or something else

2018-07-23 Thread Rich Shepard
n. John, I don't recall if urwid supports windows, but it has more display and UI capabilities than either curses or ncurses. Urwid is a console widget library for python. HTH, Rich -- https://mail.python.org/mailman/listinfo/python-list

Python3 packages installation

2018-10-10 Thread Rich Shepard
of the applications I regularly use require python2 while any python scripts I now write use python3. If there's a document or web site that explains how to manage both versions please point me to it. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3 packages installation

2018-10-10 Thread Rich Shepard
On Wed, 10 Oct 2018, Jim wrote: I think you have to first install a package called 'python3-pip'. At least that's what I had to do on Ubuntu. Jim, Well, it did not occur to me to try a hyphenated name. I'm sure that's the solution. Thanks for the pointer! Bes

Re: Recommendations for a novice user.

2019-01-02 Thread Rich Shepard
x27;ll find more help here when you first look for solutions yourself and report what you've done and the results. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: the python name

2019-01-02 Thread Rich Shepard
the SN come from "string", and the BO from the middle of "symbolic". R is the open source implemention of the S statistical/data analysis language developed by Chambers at the AT&T Labs. S-Plus is the proprietary, windows-requiring implementation of S. Rich -- https:/

Re: Python read text file columnwise

2019-01-11 Thread Rich Shepard
15:0027.31 87.09 4.7 2018-06-28 04.07:0027.87 84.91 5.0 2018-06-29 00.42:0032.20 104.61 4.8 So? What do you want to do with it? Are the fields fixed length? Tab-separated? Space-separated? Regardless of what you want to do, replace all whitespace with commas.

Re: Pythonic Y2K

2019-01-18 Thread Rich Shepard
by the consultant. People tend to take for granted when things work smoothly but notice when there are glitches. Ask any major conference or annual meeting director about this. :-) A similar situation is faced by those of us who are expected to "prove" a negative. Carpe weekend, all,

ttk present but not found for import

2019-01-19 Thread Rich Shepard
" or "license" for more information. import tkinter import ttk Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'ttk' What have I done incorrectly? TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: ttk present but not found for import [RESOLVED]

2019-01-19 Thread Rich Shepard
On Sat, 19 Jan 2019, Rich Shepard wrote: What have I done incorrectly? Got it: from tkinter import ttk Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: ttk present but not found for import

2019-01-22 Thread Rich Shepard
On Tue, 22 Jan 2019, cem.i...@compello.com.tr wrote: try as below; import tkinter.ttk as ttk I posted this solution shortly after the first message. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Access control class?

2019-02-17 Thread Rich Shepard
. Thanks in advance, Rich -- https://mail.python.org/mailman/listinfo/python-list

tkinter: variable width widgets in a grid?

2019-02-24 Thread Rich Shepard
When placing widgets (e.g., Entry, Spinbox) in a grid layout can a length (visible width) be specified? For example, a telephone extension is a shorter string than the number itself. What's a good resource (other than this mail list) for such questions? TIA, Rich -- https://mail.pytho

Re: tkinter: variable width widgets in a grid?

2019-02-24 Thread Rich Shepard
On Sun, 24 Feb 2019, Paul Sutton wrote: Not sure if this is helpful. I wrote a small application in python-tk, and you can indeed do this ... Paul, Thank you. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: variable width widgets in a grid?

2019-02-24 Thread Rich Shepard
7;s a good resource (other than this mail list) for such questions? http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html Excellent; I missed this in my web searchs. Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

tkinter: get ttk.combobox choices from another class

2019-03-03 Thread Rich Shepard
ndustries' ind_name = Column(String, primary_key=True) How can I have the ttk.Combobox get the values from the Industries class? (If I confused you let me know and I'll try to clarify the situation.) TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: get ttk.combobox choices from another class [RESOLVED]

2019-03-03 Thread Rich Shepard
Now that you've pointed it out to me it is quite obvious. :-) Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Your IDE's?

2019-03-26 Thread Rich Shepard
On 2019-03-25 21:38, John Doe wrote: What is your favorite Python IDE? Emacs on Slackware. Rich -- https://mail.python.org/mailman/listinfo/python-list

Importing module from another subdirectory

2019-04-17 Thread Rich Shepard
named 'model' My previous use of python has had all files in the same directory so I've not before had to learn how to address this issue. Pointers appreciated. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-18 Thread Rich Shepard
ture Then there was this rather long list of traps. http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html Sayth, Thank you. My web search terms didn't find these. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-18 Thread Rich Shepard
r so now I know what to learn to resolve this issue. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-22 Thread Rich Shepard
to all python invocations) I'd be better off using site within each project's root directory so modules in project-specific subdirectories are available to that project. I would like advice on how to do this. Or, can I extend sys.path within each project's root directory so the

Re: Importing module from another subdirectory

2019-04-23 Thread Rich Shepard
ikely teach me what I need to learn for both projects. Thanks very much. Best regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
c directories in the search path. While developing the application and testing each view module I would place the same import and sys.path.append() commands in the module being developed and tested. Is this correct? Thanks again, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
. Now I'll learn how to use it for each of my two projects. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
I've installed virtualenv in Slackware-14.2. Now I want to set up the ENV <https://virtualenv.pypa.io/en/stable/userguide/> in an application's development directory. Which is the CWD for running virtualenv and spcifying the path to the project's directoy? Rich -- ht

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: If I correctly understand the process, in bustrac.py I'll add import sys.path sys.path.append(controller, model, scripts, views) Never mind. I've installed virtualenv and will work within it. Regards, Rich -- https://mail.python.org/mailma

Re: Running virtualenv to set the ENV [RESOLVED]

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: Which is the CWD for running virtualenv and spcifying the path to the project's directoy? The project's subdirectory. It's up and running now. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: The current project's directory structure is: I changed package names so there are no duplicate names for packages and modules. bustrac/ README.rst bustrac.py* controller/ classes/ model.py scripts/

Re: Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
oject directory tree is already establilshed. What I did was install virtualenv and activate it when I work on the project code. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
7;s working (I activate it when ready to work on the code and deactivate it when done), I'm still struggling to figure out the proper syntax to import a module that's in another package. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing module from another subdirectory

2019-04-25 Thread Rich Shepard
tly extend sys.path when it's not done automatically. I've taken your suggestion of developing each project in its own virtual environment and I think that explicitly appending imported packages will resolve all these issues. Many thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Running virtualenv to set the ENV

2019-04-25 Thread Rich Shepard
think about. Best regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Import module from a different subdirectory

2019-05-16 Thread Rich Shepard
;classes' Of course, 'classes' is a subdirectory not a module. My web searches have not found the proper syntax to import the 'model' module from the separate subdirectory classes and I need to learn how to do this. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Import module from a different subdirectory

2019-05-16 Thread Rich Shepard
x27;ll add the blank file. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Import module from a different subdirectory

2019-05-17 Thread Rich Shepard
on I have the import problem. Package directory without __init__.py is "namespace package". Namespace package is not a regular package. See [1] for detail. Thank you for correcting me. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Import module from a different subdirectory

2019-05-17 Thread Rich Shepard
On Thu, 16 May 2019, Rich Shepard wrote: The project directory contains subdirectories, including gui/ (with the tkinter views) and classes/ with the SQLAlchemy model.py. Getting closer, but still missing a piece of the solution. First, I added __init__.py to each module subdirectory to

Re: Import module from a different subdirectory

2019-05-18 Thread Rich Shepard
quot;, line 1, in from classes import model as m ModuleNotFoundError: No module named 'classes' 'classes' is a package (a subdirectory) containing an empty __init__.py, not a module. 'classes' conains a single module, model.py. Since the project's root directory is seen by sys.path I don't know why the import statement keeps failing. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Import module from a different subdirectory

2019-05-18 Thread Rich Shepard
ectory and I try to run text_act_de.py I get the error that model.py is not found in the classes subdirectory. I don't see how my directory structure, file locations, and paths differ from your examples. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Import module from a different subdirectory

2019-05-18 Thread Rich Shepard
I set PYTHONPATH. Discovered this a bit ago when I looked over the messages in the thread and realized that I had a major brain cramp when setting up PYTHONPATH. Having corrected this, the problem has gone away. My apologies to all who patiently tried to get me to see what I kept missing

tkinter: tk.grid columnspan

2019-06-05 Thread Rich Shepard
n would do the job. It does not. I've read several web pages on the tk.grid without seeing the proper way of making a stringvar wider than a single grid cell. Please teach me how to make a tk.StingVar cover two columns in a grid layout. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tk.grid columnspan

2019-06-05 Thread Rich Shepard
st the size and expand to the left. Alternatively, when a use selects a row from the database table the retrieved data will fill the description entry widget so column 2's width will be wider. Is this correct? Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tk.grid columnspan

2019-06-05 Thread Rich Shepard
out. I find tkinter easier to read and write, but I'm still at the very bottom of the learning curve. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tk.grid columnspan [RESOLVED]

2019-06-06 Thread Rich Shepard
for the full dialog box. The last widget is tk.Text for a comment. Adding 'columnspan=4' to the grid options makes the layout correct. The Entry widget will expand to accommodate entered text. Thanks, everyone, Rich -- https://mail.python.org/mailman/listinfo/python-list

Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
ource of the syntax error and I'm not able to allow pdb to step through the code. Your advice appreciated, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
preceding the one shown by the compiler, e. g. Yes, I know that and have looked for it unsuccessfully. Will post preceeding lines in response to MRAB's response. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
;, 'Surface water', 'Ground water', 'Sediments', 'Soils']) ) emacs shows all parentheses are paired. I hope that fresh eyeballs see what I keep missing. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Rhodri James wrote: The syntax error causes Python to halt before it has finished compiling your program into byte code. There is nothing to run pdb on! Okay. That certainly makes sense. It's been a very long time since I did any Python coding. Regards, Rich --

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
ode we too often see what we expect to see and not what's actually there. Fresh eyes to the rescue once again. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
ame syntax error is generated. Commenting out all widgets prior to this one makes no difference so the error must be local. Yes? Please explain where the positional argument is located. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
ow to figure out the proper way of writing the widget. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
hank you Rhodri. More reading is now the next thing I do. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
an do this with "input_var := tk.IntVar". That might be the easiest solution. Yes, I need to use a diffrent syntax for Checkbuttons and Radiobuttons than for other widgets. Back to my reference book for more study. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Sat, 8 Jun 2019, Chris Angelico wrote: Right, but the problem was actually in the LabelInput call, not the Checkbutton itself. ChrisA, That's what I found and fixed. Now working on a slightly different issue with a ttk.Combobox. Carpe weekend, Rich -- https://mail.python.org/ma

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Terry Reedy wrote: An additional error is the missing ()s. This would make input_var refer to the class, not an instance thereof. Oops! I completely missed that. Thanks, Terry, Rich -- https://mail.python.org/mailman/listinfo/python-list

Center ttk.Checkbox in grid column

2019-06-08 Thread Rich Shepard
A data input form (screenshot attached) has two ttk.Checkbutton widgets. I've read the manual page for this widget and interpret the justify style as applying to only multiline text descriptors of the checkbutton. Is there a way to center the entire widget within the grid column? TIA,

Re: Center ttk.Checkbox in grid column

2019-06-08 Thread Rich Shepard
On Sat, 8 Jun 2019, Rich Shepard wrote: A data input form (screenshot attached) has two ttk.Checkbutton widgets. Looks like the screenshot image was clipped off the message. Is there a widget option for the ttk.Checkbox that horizontally and vertically centers the button and label text in the

Re: Center ttk.Checkbox in grid column

2019-06-08 Thread Rich Shepard
tified. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Center ttk.Checkbox in grid column

2019-06-08 Thread Rich Shepard
On Sat, 8 Jun 2019, MRAB wrote: A workaround is to pack the widget in a tk.Frame and then put the frame in the grid cell. Okay. For now I'll leave it as-is and wait for feedback from users (if any) when the application is up and running. Thanks again, Rich -- https://mail.python.org/ma

Re: Center ttk.Checkbox in grid column

2019-06-08 Thread Rich Shepard
') c2 = ttk.Label(r, text='box2') r.columnconfigure((0,1), minsize=100, weight=1) c1.grid(row=0, column=0) c2.grid(row=0, column=1) Thanks, Terry. Rich -- https://mail.python.org/mailman/listinfo/python-list

tkinter: on_cancel() method

2019-06-18 Thread Rich Shepard
ox without saving any data. Using return and close() generate errors. TIA, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: on_cancel() method [RESOLVED]

2019-06-18 Thread Rich Shepard
On Tue, 18 Jun 2019, Rich Shepard wrote: I have frames for data entry and modification. Each has two buttons: Save and Cancel. Is there a standard tkinter on_cancel() method responding to a user clicking on the Cancel button? Found the solution: self.destroy() Rich -- https://mail.python.org

tkinter: widget to display set returned from database table

2019-06-19 Thread Rich Shepard
rather than a simple list. Each table has multiple columns and I want to create a view for each table that will allow the user to select a row. The SQL select statement will be formed from criteria provided in a separate dialog box. Advice needed, Rich -- https://mail.python.org/mailman/listinfo

Re: tkinter: widget to display set returned from database table

2019-06-20 Thread Rich Shepard
On Thu, 20 Jun 2019, MRAB wrote: Here's a small example. Thank you very much. Your example makes much more sense to me than do the ones I've found on the web. Best regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: widget to display set returned from database table

2019-06-20 Thread Rich Shepard
rrent thinking is that the sorting will be done by the SQL statement based on user input (and that's another widget I need to learn) so the output in the treelist will be as correct. Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Books for Python 3.7

2019-07-15 Thread Rich Shepard
mmend starting with the latest edition of 'Learning Python'. The other might be helpful depending on how you use Python. The latest edition is quite large but well written, easy to follow, and complete. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Installing python3 packages using pip

2019-08-08 Thread Rich Shepard
OR: No matching distribution found for numpy3 How do I install numpy3, python3-matplotlib, and scipy3 using PIP? Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing python3 packages using pip

2019-08-08 Thread Rich Shepard
On Thu, 8 Aug 2019, Richard Moseley wrote: You will need to have to install python3-pip Richard, Aha! I thought it was just pip3. Hope this helps, Richard Moseley. Yes, it does. Many thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing python3 packages using pip

2019-08-08 Thread Rich Shepard
isfies the requirement numpy3 (from versions: none) ERROR: No matching distribution found for numpy3 I'm open to all advice and learning how to install numpy3 so I can also install packages requiring it. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing python3 packages using pip

2019-08-08 Thread Rich Shepard
ecture/word size, version (x.y), etc, etc). ChrisA, Well! This is the first I've learned of the proper way to install python3 packages from PyPI. Thank you. Numpy, scipy, and matplotlib all installed properly. Best regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing python3 packages using pip

2019-08-08 Thread Rich Shepard
ed pip3 instead. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Installing python3 packages using pip

2019-08-08 Thread Rich Shepard
(so "python3.7 scriptname.py" will see things installed with "python3.7 -m pip install pkg"). Not something to worry about right now, but if you run into trouble, this is the longhand that "pip3" is the shorthand for. Will keep this in mind should the need arrive. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Rich Shepard
te queries. When you get your head around all this consider using Python and SQLAlchemy with SQLite3, postgresql, or whatever you want for the database back end. Good luck! Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Rich Shepard
On Tue, 13 Aug 2019, Rich Shepard wrote: Read Joe Celko's books, starting with his SQL Programming Guide, then SQL That should be SQL Programming Style Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: How to plot a data including date and time?

2019-08-13 Thread Rich Shepard
program (R and PSTricks are two I use; matplotlib also does a fine job). Second, learn what data format and manipulation that application uses on provided data. Third, learn that application/language and plot your data after importing it to the application. Rich -- https://mail.python.org/mailman

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Rich Shepard
, you might not be the only person looking at the schema and code needing to understand what's going on. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Create multiple sqlite tables, many-to-many design

2019-08-14 Thread Rich Shepard
On Wed, 14 Aug 2019, Chris Angelico wrote: I prefer to say "Trails" for the table, and "Trail" would then refer to a single row from that table. +1 Rich -- https://mail.python.org/mailman/listinfo/python-list

Tkinter: which ttk widget for database table primary key?

2020-03-18 Thread Rich Shepard
e that the ttk.Entry and ttk.Spinbox widgets are inappropriate. As a newcomer to Tkinter I ask for advice on which widget to use. Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: which ttk widget for database table primary key?

2020-03-18 Thread Rich Shepard
not find all options for the Entry widget in my quick look for them. I like this because users will sometimes want to find all data from that location and being able to copy that number and paste it in a query will be helpful. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: which ttk widget for database table primary key?

2020-03-18 Thread Rich Shepard
, Thanks very much for expanding on Christian's response. This is the widget I'll use and set it to 'readonly'. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

datepicker fails to find firstweekday in calendar

2020-03-20 Thread Rich Shepard
ebackground='#b1dcfb', activeforeground='black', selectbackground='#003eff', selectforeground='white', command=None, borderwidth=1, relief="solid", on_click_month_button=None): (N.B. Local line wrapping; in the code it's all on one line.) Since ca

Re: datepicker fails to find firstweekday in calendar [FIXED]

2020-03-20 Thread Rich Shepard
on-disk file. I learned a valuable lesson. Thanks very much, Rich -- https://mail.python.org/mailman/listinfo/python-list

Module import best practice

2020-03-25 Thread Rich Shepard
stion is whether to import into each view class those modules needed by it or import all supporting modules at the top of commonDlgs.py, then import that module in each view with: from . import commonDlgs as cd rather than importing specific classes in each view module? Rich -- https://mail.pytho

RE: Module import best practice

2020-03-26 Thread Rich Shepard
nDlgs should include 'from commonDlg import ...' only the classes it needs, even when there are several (but not all commonDlg classes). Is this correct? Many thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Module import best practice

2020-03-26 Thread Rich Shepard
se tools to others who might benefit from them. The last database-backend application I wrote in python2 and wxPython was more than a decade ago. Now I'm working exclusively with Python3 and learning tkinter. I've much to learn. ;-) Thanks for the complete explanation and I hope you

Identifying tkinter version

2020-04-01 Thread Rich Shepard
Here, on Slackware-14.2, Python3-3.8.2 is installed. I would like to learn which version of tkinter is provided with it. There's no local VERSION file and tkinter.version() returns nothing. How do I determine the installed version? Regards, Rich -- https://mail.python.org/mailman/lis

Re: Identifying tkinter version [ANSWERED]

2020-04-01 Thread Rich Shepard
On Wed, 1 Apr 2020, Tony van der Hoff wrote: How do I determine the installed version? import tkinter tkinter.TkVersion 8.6 Thanks, Tony. I was close, but still too far away. Stay healthy, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Identifying tkinter version [ANSWERED]

2020-04-02 Thread Rich Shepard
On Thu, 2 Apr 2020, Terry Reedy wrote: Or run IDLE, select Help > About IDLE and the patchlevel is displayed. Terry, Interesting. I use emacs but I'll keep this in mind. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   >