Skip to content

Current Date/Time [ANSWERED] #36

Answered by paddywwoof
vinyli85 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, this is the kind of thing you could do

import threading #this should be at the top with other imports
...
text_bkg.set_shader(back_shader)
text_bkg.set_material((0, 0, 0))
################################################################################
# show time code ###############################################################
tm_text = pi3d.PointText(font, CAMERA, max_chars=10, point_size=config.SHOW_TEXT_SZ)
tm_textblock = pi3d.TextBlock(x=-DISPLAY.width * 0.5 + 50, y=DISPLAY.height * 0.4,
                          z=0.1, rot=0.0, char_count=9,
                          text_format="{}".format(" "), size=0.99,
                          spacing="F", space=0.02, colour=(1.0, 1.0, 1…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vinyli85
Comment options

Answer selected by vinyli85
Comment options

You must be logged in to vote
1 reply
@vinyli85
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants