Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Question] - Keyboard input issue with non ASCI șțȘȚ show questionmark

Abierto
#6,217 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
desktop

Línea de trabajo

Comienza con el ejemplo proporcionado de PySimpleGUI tkinter y reproduce el problema usando una distribución de teclado rumana en el entorno de Windows indicado. Compara la introducción mediante el teclado de șțȘȚ con pegar en el mismo InputText y, a continuación, sigue la ruta de entrada de tkinter; el trabajo estará terminado cuando esos caracteres se acepten desde el teclado sin convertirse en signos de interrogación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Type of Issue (Enhancement, Error, Bug, Question)

Question


Operating System

[MSC v.1914 32 bit (Intel)]

PySimpleGUI Port (tkinter, Qt, Wx, Web)

port: tkinter

Versions

Python version (sg.sys.version)

3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47)

PySimpleGUI Version (sg.__version__)

PySimpleGUI version: 4.60.4

GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)

Your Experience In Months or Years (optional)

4 months
Years Python programming experience

Years Programming experience overall

Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)

Anything else you think would be helpful?


Troubleshooting

These items may solve your problem. Please check those you've done by changing - [ ] to - [X]

  • Searched main docs for your problem www.PySimpleGUI.org
  • Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demos.PySimpleGUI.org
  • If not tkinter - looked for Demo Programs for specific port
  • For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • Run your program outside of your debugger (from a command line)
  • Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.org
  • Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
  • Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released
Detailed Description

Trying to input non asci characters in input box from keyboard with romanian standard keys ;' should be șț
yet they show question marks if i copy paste they show,
so the issue is with keyboard input of those non asci characters

Code To Duplicate

Is just an input


import PySimpleGUI as sg

sg.theme('DarkAmber')   # Add a little color to your windows
# All the stuff inside your window. This is the PSG magic code compactor...
layout = [  [sg.Text('Some text')],
            [sg.Text('Enter something ȘȚșț'), sg.InputText(default_text = "ȘȚșț",)],
            [sg.OK(), sg.Cancel()]]

# Create the Window
window = sg.Window('Window Title', layout)
# Event Loop to process "events"
while True:             
    event, values = window.read()
    if event in (sg.WIN_CLOSED, 'Cancel'):
        break

window.close()



Screenshot, Sketch, or Drawing

keyboard input

Watcha Makin?
Lenguaje dominante
Python
Estrellas
13.8k
Forks
1.8k
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PySimpleGUI/PySimpleGUI

Todos los issues de PySimpleGUI/PySimpleGUI

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.