AustL / PygameWidgets

A module for use with Pygame. Includes fully customisable buttons, textboxes, sliders and many more, as well as the ability to create and run animations on these widgets.
MIT License
57 stars 16 forks source link

Textbox not showing ph text, and can't set cursor color #66

Closed yu-zhengzheng closed 11 months ago

yu-zhengzheng commented 1 year ago

Describe the bug Textbox doesn't showing placeholder text, and is missing a method that sets cursor color.

To Reproduce time_box= pygame_widgets.textbox.TextBox(window, 640, 900, 600, 40, fontSize=20,colour=c_black, borderColour=c_white, textColour=c_white,onSubmit=output,radius=10, borderThickness=1,placeholderText='YYYY-MM-DD HH:MM:SS',font=pygame.font.SysFont('courier new',size=32))

Expected behaviour Expecting textbox to show placeholder text with specified font and textColour Expecting an optional parameter that sets cursor colour

Screenshots

Version Numbers