alejandroautalan / pygubu-designer

A simple GUI designer for the python tkinter module
GNU General Public License v3.0
838 stars 102 forks source link

CTKEntry text values not working #266

Closed AlanC5432 closed 4 months ago

AlanC5432 commented 4 months ago

Describe the bug When placing a CTKEntry text value in the properties, The Preview does not show it.

When generating code the following line is present:

ctkentry1.configure(text='ctkentry1')

and the following Value Error is given during runtime: ValueError: ['text'] are not supported arguments.

uses text= to set the text value when generating code

To Fix the issue I need to change text= to placeholder_text= as that is the correct property to use in CTKEntry.

ctkentry1.configure(placeholder_text='ctkentry1')

To Reproduce Steps to reproduce the behavior:

  1. Create a CTkToplevel, CTkFrame, CTkLabel and CTKEntry
  2. Click on text property of CTkEntry widget and ensure there is some text in the box
  3. Preview does not show any text
  4. Generate code

Expected behavior running python should show a window with a label and a text box

Screenshots If applicable, add screenshots to help explain your problem.

Your Environment (please complete the following information):

Additional context The property of a CTKEntry widget should be placeholder_text and not text.

alejandroautalan commented 4 months ago

Hello @AlanC5432, thanks for the bug report.

Fixed in pygubu v0.35.5

Regards. Alejandro A.