If something isn't quite working right with GUI Pie, try inspecting this list of frequently asked questions to see if a specific solution can be found.
If you cannot see any text on your widget, ensure the text size is not too small or too big.
Text sizes are fixed to the pixel size of your window. If you have less pixels per grid, your text will be larger. Likewise, with more pixels per grid, your text will be smaller. GUI Pie scales the text on the screen so that it reflects the way python will display text.
A widget can only hold a certain amount of text. Ensure that your given text does not exceed the boundaries of your widget! Due to technical limitations, overflowing text will be rendered differently in python than in GUI Pie. In order to allow for the size of your window to be altered with ease, text is allowed to exceed the boundaries of widgets. This is made obvious through the truncation of text. However, please take note of this visual display, and understand that it indicates that not all of your text will be able to be seen.
This is due to the limitations of Unity and how image textures are compressed. This will not affect the colours in Python. Try converting the file to a JPEG and see if the issue remains.
The first step to try when encountering this sort of error is to ensure you have selected a valid file location. Try changing the location to a standard location that is known to be working, such as the desktop. Rarely after an update, GUI pie will not be able to export your code. Try reselecting your export location in the GUI properties panel - this usually solves the problem.
If this fails, the problem is usually caused by the program not being given adequate permissions to save such a file, generally a localised issue to a particular computer. Attempt to revise any policies you believe may have caused this, or run GUI Pie on a different computer. If you still wish to run GUI Pie with such restrictive policies, there is a workaround where GUI Pie can be used without having to create a file.
Create a new file and name it blank.pygui, or <desired file name>.pygui.
Paste in the blank file data from below into that file.
Create a new python file, naming it <gui title>.py, such as example.py.
Copy the full file location of your python file.
Locate in your .pygui file the line<exportLocation>INSERT FILE LOCATION HERE</exportLocation>
Replace INSERT FILE LOCATION HERE with the full location of your python file
Open your newly created pygui in GUI Pie
<?xml version="1.0" encoding="utf-8"?>
<save xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<saveDataHistory>
<saveDataPacket>
<windowSize>
<int>400</int>
<int>400</int>
</windowSize>
<parentScript>main</parentScript>
<gridSize>
<int>10</int>
<int>10</int>
</gridSize>
<title>blank</title>
<exportLocation>INSERT FILE LOCATION HERE</exportLocation>
<backgroundColourHex>FFFFFF</backgroundColourHex>
<backgroundColour>
<float>1</float>
<float>1</float>
<float>1</float>
</backgroundColour>
<saveDataLabel />
<saveDataEntry />
<saveDataButton />
<saveDataDropdown />
<saveDataImage />
<moreCode>
<code />
</moreCode>
</saveDataPacket>
</saveDataHistory>
</save>
All packages used in GUI Pie should come pre-installed with python. However, if for some reason these cannot be found, then you might need to install the packages manually.
Install pip
Follow the instructions here to install pip. If pip has already been installed, skip to the next step
In order to test if that was successful, type pip into the command prompt. If information about pip appears, you have successfully installed pip! If you receive a message saying that pip was not recognised, you will need to add pip to PATH.
Run the following command in the command prompt setx PATH "%PATH%;<full path of your python's script folder>"
For example: setx PATH "%PATH%;"C:\Python38-32\Scripts"
If this fails, follow the instructions provided by this link , or follow other instructions found online for "Python add pip to path Windows 10".
If this is too much to ask, simply reinstall python and tick the box saying "Add python to PATH"
Installing PIL
Run the following command into the command prompt
pip install pillow
This should now allow you to use the Python Imaging Library
Install Tkinter
Tkinter should come preinstalled with python. Either reinstall python, or follow this link to instruct you how to download and install tkinter.
If python cannot find your GUI file to import, first ensure you have it in the same directory as the main parent script. Both of them need to be in the same directory. Next, ensure you have imported it using the name of the GUI file, and not its full file name with extension. If you GUI file was named GUI.py, you will import it with from GUI import * and NOT from GUI.py import *. If it still cannot find it, try reinstalling python and updating it to the latest version.
Ensure you haven't changed the name of your python file. Its name should match the name of your GUI object inside that file. If it is different, change it so that both are the same.
Ensure you have called show<page name>Widgets() on at least one page before running the file. Ensure that gui.run() is the last line called.
In MacOS, Tkinter has a few restrictions imposed by Apple. These include the inability to change the background colour of a button or remove its border, when used in a grid layout system.
This is unfortunate and annoying.
You haven't defined your function with valid parameters. You need to define your function with a parameter for the name of the button.
Don't do this : def Event1():
Instead do: def Event1(title):