layout = [ [sg.Text('FileName', size=(7, 1), font=('华文中宋', 15))]+[sg.InputText(key='filename', size=(50, 1), font=('楷体', 10))], [sg.Output(size=(65, 10), font=('楷体', 10))], [sg.FilesBrowse("SELECT-FILE", key='file', target='filename'), sg.Button('CHANGE'), sg.Button('EXIT'),sg.Text('File-Converter', justification="left", font=('华文行楷', 30))] ]
时间: 2023-05-24 07:06:28 浏览: 102
layout-bmfont-text:自动换行并布置文本字形
This is a layout definition written in Python using the PySimpleGUI library. It creates a graphical user interface (GUI) with multiple elements including text, input, output, buttons, and file browsing options.
The layout includes:
- A text element with the label "FileName" using the "华文中宋" font with a size of 15.
- An input text element with a key of "filename" and a size of 50 using the "楷体" font with a size of 10.
- An output element with a size of 65 and a font of "楷体" with a size of 10.
- Three buttons: "SELECT-FILE", "CHANGE", and "EXIT".
- A text element with the label "File-Converter" using the "华文行楷" font with a size of 30 and left justification.
The layout is stored in a list called "layout". The square brackets indicate nested lists that contain different elements. The commas separate each element within a nested list.
阅读全文