Which version of PAGE are you using? If you place a "standard" tk frame on your Toplevel and set the attributes in the Attributes editor as follows. I think the inconsistency led me to over look it, maybe thingking bd was BackgrounD if the official term is thickness, may be better to use that, since the docs can then serve as a direct reference for Page i also wonder why they call this "highlight". would be better to say border rather than bd (since border is said elsewhere). For permitted values, see Section 5.1, “Dimensions” (p. bd or borderwidth - Width of the frame's border. If you have a copy of the New Mexico Tech Tkinter 8.5 reference (you can download it from (), on page 48 where they talk about Frames and its attributes, you will see the following. The abbreviation of "bd" is the proper term when it comes to Tkinter. I wanted to put a red boarder strip, maybe 15 pixels all around my frame, so I was originally playing with flat, ridge, groove, etc to no avail.the color would not be the same on all 4 sides, nor could I seem to set it to red. The relief HAS NOTHING to do with the border. Hi Greg: Even the Umexico listing has some issues: To put a border around a frame, set its borderwidth to a positive value and set its relief to one of the standard relief types see Section 5.6, “Relief styles”. I wanted to put a red boarder strip, maybe 15 pixels all around my frame. Greg On Tue, at 4:20 PM wrote: Hi Greg: Even the Umexico listing has some issues: To put a border around a frame, set its borderwidth to a positive value and set its relief to one of the standard relief types see Section 5.6, “Relief styles”. highlightbackground has nothing to do with the relief. As far as i can tell the only one where you can set the color on all 4 sides is the outermost. But they never mention the existence of one when discussing the other! All they mention is "border" when discussing either. Part of the confusion is that they have flat, ridged, sunken etc "relief borders", and they ALSO have highligththickness/highlight bd, as an outermost border. Here is a really nice set of actively maintained fancier widgets.can they be added to Page choices, so an easy layout can be done (you would have to pip install customtkinter for it to run)? CustomTkinter widgets are not implemented for Tk. PAGE is written in Tcl and generates Python3 code and that means it is limited to widget sets which are available to both tcl/tk and Python. The simple answer is no we can't add CustomTkinter widgets to PAGE. This is similar to Word.word program takes up the full screen, but the document itself can be shown at any scale, from a full page. and maybe a slider for left/right up/down if zoomed in. Page itself needs to take up part of the screen, so the layout itself needs to take up a smaller portion while it is being edited, basically zoom in/out of the layout area. Has any more thought been given to allowing the editing area to be rescaled? It is a big issue when using Page to make a full screen layout. Theses days, even the Raspberry Pi 4 supports dual HDMI monitors. On the Primary, you could design your GUI in the Toplevel and on the secondary you could place the Menu window, Toolbox, Widget Tree and the Attribute Editor. However, consider using a dual monitor setup. In order to save the GUI changes, you need to save the Python script within PAGE, but when you do this all of the programming changes you made are wiped out so that only the revised GUI framework remains. But suppose you decide to add some new widgets or rearrange the layout. Fine so far you run it and everything works just fine. One huge issue I have with PAGE GUI is the following: Let’s say you create a GUI using PAGE and then edit the Python file to add functionality. You should do any coding in the support.py file. The support.py file is the only one that should ever be changed by hand. The GUI.py file is not meant to be changed by hand. Not a deal killer after all! -Nelson Sievers I didn't think of that but it makes sense I'll certainly check it out. If all else fails, read the instructions! :-) -Thank you again. In my haste to dig in and play around I neglected to observe that you've provided an excellent tutorial along with the download.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |