File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import sys
99import pyfiglet
1010
11- version = '6.1.1 '
11+ version = '6.1.2 '
1212__version__ = version .split ()[0 ]
1313
1414"""
2424 Made resizing of window work better
2525 Added option to prepend "#" onto front of each line with
2626 Navigating with arrow keys while in font list will select fonts so that previewing can be done quickly
27+ 6.1.2 25-Jun-2026 Fixed setting an intial font
2728"""
2829
2930
@@ -174,6 +175,13 @@ def make_window():
174175 window ['-FONT-LIST-' ].bind ('<Up>' , '+UP' )
175176 return window
176177
178+ # ███╗ ███╗ █████╗ ██╗███╗ ██╗
179+ # ████╗ ████║██╔══██╗██║████╗ ██║
180+ # ██╔████╔██║███████║██║██╔██╗ ██║
181+ # ██║╚██╔╝██║██╔══██║██║██║╚██╗██║
182+ # ██║ ╚═╝ ██║██║ ██║██║██║ ╚████║
183+ # ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝
184+
177185
178186def main ():
179187
@@ -228,6 +236,10 @@ def main():
228236 selected_font = values ['-FONT-NAME-' ]
229237 if text .strip () == '' :
230238 text = selected_font .strip ()
239+ if not selected_font :
240+ selected_font = favorite_fonts [0 ]
241+ window ['-FONT-NAME-' ].update (selected_font )
242+ values ['-FONT-name-' ] = selected_font
231243 # fancy way of detecting the size of the multiline so the window can be resized
232244 # line_length = window["-OUTPUT-"].get_size()[0] // sg.Text.char_width_in_pixels(MULTILINE_FONT)
233245 line_length = window ["-OUTPUT-" ].get_size ()[0 ] // sg .tkinter .font .Font (font = MULTILINE_FONT ).measure ('A' )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def readme():
1111
1212setuptools .setup (
1313name = "psgfiglet" ,
14- version = "6.1.1 " ,
14+ version = "6.1.2 " ,
1515author = "PySimpleGUI" ,
1616install_requires = ["PySimpleGUI" ,"pyfiglet" ],
1717description = "Create Figlets using a PySimpleGUI GUI and pyfiglet. A PySimpleGUI Demo Program." ,
You can’t perform that action at this time.
0 commit comments