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
On 1/15/2021 3:51 PM, Rich Shepard wrote:
I want to replace the menu on my application with the more appropriate
notebook. After looking at examples in my reference books and on the Web I
still cannot get it working properly.
IDLE's settings dialog uses a ttk.Notebook. The file is
Lib/idlelib
On 2021-01-16 00:16, Rich Shepard wrote:
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
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,
colum
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 of t
On Fri, 15 Jan 2021, Dennis Lee Bieber wrote:
Off-hand, I'd suspect you should be adding these to the NOTEBOOK
object "n".
Dennis,
You're correct. The MWE didn't have the proper syntax.
Now, the problem is the notebook doesn't display its tabs on the main
window, while the proper syn
On Fri, 15 Jan 2021, MRAB wrote:
You should be adding the frames to the notebook. Also, the tabs are
'self.tab1', not 'tab1', etc:
n.add(self.tab1, text='Activities')
Similarly for the others.
Thanks. MRAB. This allows me to move on and put pre-built widget pages on
the tabs.
Regards
On 2021-01-15 20:51, Rich Shepard wrote:
I want to replace the menu on my application with the more appropriate
notebook. After looking at examples in my reference books and on the Web I
still cannot get it working properly.
Here's a small example (nbtest.py):
---8< ---
#!/us