Skip to content

adding_verbose_option #181

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

Merged
merged 1 commit into from
Feb 24, 2023
Merged

adding_verbose_option #181

merged 1 commit into from
Feb 24, 2023

Conversation

jposada202020
Copy link
Contributor

Related to #171

tested with:

import time
import board
import terminalio
import displayio
from adafruit_display_text import bitmap_label

display = board.DISPLAY

main_group = displayio.Group()
MEDIUM_FONT = bitmap_font.load_font("LeagueSpartan-Bold-16.bdf")

TIME_PAUSE = 1

# Testing creating label with initial position
text_area = bitmap_label.Label(terminalio.FONT, x=20, y=20, text="Verbose Option Testing", verbose=True)
main_group.append(text_area)
display.show(main_group)
time.sleep(TIME_PAUSE)

# Testing Verbose
text_area.text = "Testing Verbose=True"
text_initial_specs = bitmap_label.Label(
    MEDIUM_FONT,
    text="Verbose",
    x=display.width // 2,
    y=display.height // 2,
    verbose=True,
)
main_group.append(text_initial_specs)
display.show(main_group)
time.sleep(TIME_PAUSE)
main_group.pop()

text_area.text = "Testing Verbose=False"
print("putting the Verbose=False will no show the warning")
time.sleep(TIME_PAUSE)
text_initial_specs = bitmap_label.Label(
    MEDIUM_FONT,
    text=" Not Verbose",
    x=display.width // 2,
    y=display.height // 2,
    verbose=False,
)
main_group.append(text_initial_specs)
display.show(main_group)
time.sleep(TIME_PAUSE)
main_group.pop()

text_area.text = "Finished"
print("Tests finished")

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you @jposada202020

@FoamyGuy FoamyGuy merged commit 9112015 into adafruit:main Feb 24, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 25, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.24.0 from 2.23.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#181 from jposada202020/adding_verbose_option
  > Add upload url to release action

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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

Successfully merging this pull request may close these issues.

2 participants