Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FancyFillBar from golden theme doesn't behave properly #53

Closed
UplinkPhobia opened this issue Sep 18, 2021 · 1 comment
Closed

FancyFillBar from golden theme doesn't behave properly #53

UplinkPhobia opened this issue Sep 18, 2021 · 1 comment

Comments

@UplinkPhobia
Copy link

UplinkPhobia commented Sep 18, 2021

Hey,

I wanted to test some things with themes and tried using a golden.FancyFillBar, but the contents of the fill bar aren't on the right place.

This simple code

import pyglet
import glooey.themes.golden as golden

window = pyglet.window.Window()
gui = golden.Gui(window)
bar = golden.FancyFillBar()
# bar.alignment = 'center'
gui.add(bar)

bar.fraction_filled = .5

pyglet.app.run()

creates the following:
Capture d’écran du 2021-09-18 02-17-46

It seems it passed the tests because the bar is at the right place when its alignment is "center".

@kalekundert
Copy link
Contributor

Thanks for finding this. The problem was that the Base and the Fill had different default alignments, and it should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants