Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#6,217 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
desktop

Direzione di ricerca

Inizia con l’esempio PySimpleGUI tkinter fornito e riproduci il problema usando un layout di tastiera rumeno nell’ambiente Windows indicato. Confronta l’inserimento da tastiera di șțȘȚ con l’incollamento nello stesso InputText, quindi traccia il percorso di input di tkinter; il lavoro è completato quando questi caratteri vengono accettati dalla tastiera senza diventare punti interrogativi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?
Lingua principale
Python
Stelle
13.8k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PySimpleGUI/PySimpleGUI

Tutte le issue di PySimpleGUI/PySimpleGUI

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.