- #1
- 2,168
- 193
I am trying to create a GUI for a phyiscs project and I need subscripts of these things.
`H_0`,
`Omega_b`,
`Omega_dm`,
`Omega_\Lambda`
`Omega_r`
in the form of latex
My code is something like this
The most interesting thing is that it can print letters such as `M` or `R` but it cannot print `B` ?? Or It can print `phi` but it cannot print `lambda` ?
You can try this to see that this combination works.
Please help,
Thanks
`H_0`,
`Omega_b`,
`Omega_dm`,
`Omega_\Lambda`
`Omega_r`
in the form of latex
My code is something like this
Python:
import PySimpleGUI as sg
sg.change_look_and_feel('Topanga')
layout = [
[sg.Text('Enter the Parameters')],
[sg.Text("H\N{SUBSCRIPT ZERO}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{LATIN SUBSCRIPT SMALL LETTER B}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{LATIN SUBSCRIPT SMALL LETTER R}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{GREEK SUBSCRIPT SMALL LETTER LAMDA}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{LATIN SUBSCRIPT SMALL LETTER DM}", size=(15, 1)), sg.InputText()],
[sg.Text("z", size=(15, 1)), sg.InputText()],
[sg.Submit(), sg.Cancel()]
]
window = sg.Window('Simple data entry window', layout)
event, values = window.read()
window.close()
print(event, values[0], values[1], values[2], values[3], values[4], values[5])
The most interesting thing is that it can print letters such as `M` or `R` but it cannot print `B` ?? Or It can print `phi` but it cannot print `lambda` ?
You can try this to see that this combination works.
Python:
import PySimpleGUI as sg
sg.change_look_and_feel('Topanga')
layout = [
[sg.Text('Enter the Parameters')],
[sg.Text("H\N{SUBSCRIPT ZERO}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{LATIN SUBSCRIPT SMALL LETTER M}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{LATIN SUBSCRIPT SMALL LETTER R}", size=(15, 1)), sg.InputText()],
[sg.Text("\N{GREEK CAPITAL LETTER OMEGA}\N{GREEK SUBSCRIPT SMALL LETTER PHI}", size=(15, 1)), sg.InputText()],
[sg.Text("z", size=(15, 1)), sg.InputText()],
[sg.Submit(), sg.Cancel()]
]
window = sg.Window('Simple data entry window', layout)
event, values = window.read()
window.close()
print(event, values[0], values[1], values[2], values[3], values[4], values[5])
Thanks