The simple answer is no we can't add CustomTkinter widgets to PAGE. 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. CustomTkinter widgets are not implemented for Tk.
I have a couple of questions. 1. Have you been able to generate code for any previous project? 2. Have you used PAGE with dual monitors and moved the Python console off the main monitor? 3. Were you successful in saving the project? If so could you send me the Tcl project file? 4. Do you get the problem if you just open PAGE and immediately try to generate The GUI module. If the problem persists, one thing to try is to delete or rename the file ".pagerc" in your home directly and try again. If it...
One possibility is to do your GUI design using a smaller toplevel window in PAGE so you can see and use the PAGE windows and the when put code in the main function of the support module to set the root attribute to "fullscreen". See the fullscreen example in distribution, probably in "page/examples/fullscreen".
I think that changing a font preference and then continuing is leaving PAGE in some weird internal state. I recommend that if you want to change a preference you enter PAGE, update the preferences, and quit page. That way there is a better chance that things will be better initialized. That recommendation will appear in bold in the documentation in the next release.
Hi, Indeed, it is a bug. The fix will be included in the next release. Don
Forgive me for joining late. First, The response of "No Output" in the Execution window of the Python console is not an error. It merely informs you that the execution did not produce any output to stdout which is where a print function sends its output. When the support module is created callback functions contain print functions which are meant to let you know that the callback had been entered - a kind of visual confirmation of the linkage between a GUI event and the associated callback. In Linux,...
I tried sending an emaile to spillane@users.sourceforge.net but it bounced. My email address is don.rozenberg @ gmail/.com
This seems very interesting. Could you send me your email address so I could discuss it with you. I have a number of questions that may get off the subject of PAGE. Perhaps you could sign in to SurceForge and post a comment and then I could send a message,
As stated in the "Using Images" section of the documentation, images should be in the same directory as that where you are building the project or a subdirectory of that directory. This requirement seemed necessary for building portable applications with PAGE. If the image you are trying to use is in the project directory, let please let me know.
The next release will present a more understandable error message if one attempts to execute a project file - the tcl file generated by PAGE.
I messed up the attachment
Hi Tyler, In the file you sent there is a line which reads: -values {19V (0x0b)} {18V (0x0a)} {17V (0x09)} {16V (0x08)} {15V (0x00)} {14V (0x01)} {13V (0x02)} {12V (0x03)} {11V (0x04)} {09V (0x05)} {07V (0x06)} {05V (0x07)} {} when I enclose the list of values with {} obtaining: -values {{19V (0x0b)} {18V (0x0a)} {17V (0x09)} {16V (0x08)} {15V (0x00)} {14V (0x01)} {13V (0x02)} {12V (0x03)} {11V (0x04)} {09V (0x05)} {07V (0x06)} {05V (0x07)} {}} I was able to load the project file into PAGE. I would...
Thanks for reporting the bug. The fix will be in the next release.
Also, what version of Tcl/Tk are you using? That snippit of code is executed every time some using PAGE generates a GUI.py file.
I think this problem was corrected. If you are not using version 4.25.1, you might give it a try. Please let me know if the problem exists with 4.25.1.
I am working on this problem and hope to include a solution in the next release soon. In the meantime, the following might help: step 1: be sure that the page install directory , probably c:\page, is in the "path" environmental variable. step 2: open the command prompt window. step 3: enter "u:" as a command step 4: start page with "winpage" This allowed me to open a tcl project file in Windows 10.
Hello, Yes I am still here. Sorry that I have not responded sooner. I am sorry to say that there is not much that I can do for you. You say you code works on Linux Mint and that the problem happens when you run it on Android. That would seem to leave me out. I how nothing about building Android programs but I did find the following "Using tkinter Programs on Android: Provisional Guide" at https://learning-python.com/using-tkinter-programs-on-android.html. The first thing the authos says is "Please...
If you mean that you closed inadvertenly the Attribute Editor, go to main menu and sekect Window->Attribute Editor and it should reappear,
Indeed, if you attempt to run version 4.24 without parameters PAGE may not run on Windows. I have removed the Windows version of 4.24 until fixed. I apologize for the inconvenience.
A way of doing that is to use withdraw and deiconify functions of Toplevel widgets. I have augmented one of the examples to show how to do this. It is attached.
Yes that is a bug corrected in up coming release. Temporary work around is to make a non blank entry in the "IDE command" field of the Preferences window. If you actually have an IDE preference all the better.
Extensive testing of the submitted faulty example revealed two real problems: (a) faulty specification of a non-ACSII character and (b) when that was repaired the example would run with Python 3 but not with Python 2 For this example, Python 2 execution failed on 32 bit and 64 bit Windows as well as Linux. Using Python 3 the example executed OK on those same platforms. SO, if you require non-ASCII characters use Python 3. Reserve Python 2 for legacy programs.
Basically, all you have to do is download the current version to your home directory and then use "tar -zxvf <tar file="">" to put the files in your home directory (~/page) as dicussed in the PAGE documentation. Follow that with the command "./configure" from the installation directory. See http://page.sourceforge.net/#Installation. Also, see http://page.sourceforge.net/html/intro.html#installation-on-linuxts. Be sure that you have tcl/tk version 8.6 installed as well.</tar> Good Luck
PAGE requires Tcl/Tk 8.6+ for execution because PAGE is written in Tcl. ActiveTcl is a popular Tcl package with versions for many operating system. However, ActiveState, which creates ActiveTcl packages is not currently providing a version of ActiveTcl for 32-bit Windows. If you want to use PAGE on a 32-bit Windows system then you need a different Tcl package. At this point, I know of two. One is on Bitbucket and the URL is: https://bitbucket.org/tombert/tcltk/downloads/tcltk86-8.6.5-2.tcl86.Win7.i686.tgz....
It's a bug; PAGE does not support balloon help. I have alway felt that that function wasn't as important as the other stuff I was looking at. Look for a new version removing tooltip text from the attribute editor. Thanks for reporting the problem, Don
After the <<listboxselect>> event occurs and takes you to the callback routine, the following in the callback routine will get the index of the selected entries:</listboxselect> index= w.Listbox1.curselection()
For some reason the last post did not show an upper case L and upper case S in <<listboxselect>>. </listboxselect>
Hi, I have just looked into your question and created an example where I used <<listboxselect>> and it worked. Note the case.</listboxselect> PAGE uses the Tk command "event info" to get "a list of all the virtual events that are currently defined." But <<listboxselect>> is not in the list nor is included in the Event manpage. It is described in the Listbox man page. I don't know why. So I guess that you will have to visit the man pages to be sure.</listboxselect>
I am making some changes to the callback display function. If you could send me the tcl file for the GUI giving rise to the error you see, I will test it. I have not been able to reproduce the problem you describe.
The jpg files are there but not the python files. You can be able to send them by clicking on "rozen" above and then "send message" or to "don dot rozenberg at gmail dot com". The jpg files suggest that you are using an earlier version of PAGE rather than 4.14 which has generates a directive for uft-8.
There are no licensing restrictions on code generated by PAGE. You can license the code however you please.
I made a change for unicode support in the Python code in 4.13; did that help meet your needs?
This occurs because Windows does not have Tcl/Tk installed. The easiest fix is to download and install ActiveTcl. Tcl/Tk is needed because PAGE is written in Tcl/Tk even though it generates Python code.
I really don't understand your comment about the output window. What exactly is failing? What OS are you running on? As to the other posting, exactly what utf-8 support are you looking for?
In release 4.12 a line is added to the support file which allows one to enter unicode characters such as the copyright symbol, thanks to Greg Walters and its use may be seen in the example code with his tutorial.
I believe the problem may be fixed with release 4.12
There is a .bat file which invokes wish.exe which was installed with tcl/tk. By the way PAGE depends on tcl/tk so you may have to install that. If you do, I recommend installing ActiveTcl.
I have built GUI's on Linux which run just fine on my Raspberry PI 2 which is running Rasperian. The Rplay example in the documentation is one. The problem with running PAGE on the Raspberry is that tcl/tk is not installed in Rasperian and so today I tried building them from source. tcl built and installed with no problem but the tk build failed because the dependency on the libx11-dev package is not available so I am trying to resolve that problem. If I can I will let you know.
I need more information. When PAGE generates a GUI module it saves the project file with a project name that you select and an extension of "tcl". Did you see a "Save Project Dialog? Did you supply a name or accept the defult name "unknown.tcl"? It looks as though you did a cancel . You also have to generate the corresponding support module in PAGE. Could you send me the project file and I will look at it.
I haven't really known how to answer your question. I use it whenever I need a GUI. I have built several programs with PAGE which I use every day. I continually look for problems and fix them generating new releases with updated documentation. On the other hand I am not the master of a huge conglomerate where I have mandated the exclusive use of PAGE. I am afraid you will have to evaluate PAGE yourself. But please report problems which you encounter.
I have never worked with unicode characters in Tcl. Would welcome suggestions.
It is an active project with a new version in just a few weeks. I don't know anything about using matplotlib. PAGE does support the canvas widget in a rudementary fashion. Code examples are included in the download as well as some documentation.
Could you try again, I think I may have fixed this.
The listbox man page does not indicate selectcommand as an option. And Tcl configure command does not return a selectcommand option. As far as the <<ListboxSelect>> virtual event, I am not sure why it does not appear in the bindings editor. I will look into that. In the meantime you can get to the Bindings Editor and select select the listbox entry, Insert->Advanced..., and add <<ListboxSelect>> to the Event entry box and select the Add button. Then continue to specify the callback function.
This occurs because Windows does not have Tcl/Tk installed. The easiest fix is to download and install ActiveTcl. Tcl/Tk is needed because PAGE is written in Tcl/Tk even though it generates Python code.
Idlex appears to burp with current version of IPython. I found a recommendation to...