We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operating system: Windows 10 (everything is fine on Linux) wxPython version & source: 4.2.1 Python version & source: Python 3.8
Description of the problem: If there are some emoji (📌, 💡, 💾) in the text, inserting the text using SetText() will trim the last character.
import wx import wx.stc class TestFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(400, 300)) self.text = wx.stc.StyledTextCtrl(self) self.text.SetText("📌 111 222 333") if __name__ == '__main__': app = wx.App() frame = TestFrame(None, 'StyledTextCtrl Test') frame.Show() app.MainLoop()
Result:
The text was updated successfully, but these errors were encountered:
It's probably related to the following issue: #2446
Sorry, something went wrong.
Yes, I think it's a duplicate of #2446.
Umm yeah I think you nailed the issue.
... but always remember all Llama emoji are at LEAST 2 chars long haha...
No branches or pull requests
Operating system: Windows 10 (everything is fine on Linux)
wxPython version & source: 4.2.1
Python version & source: Python 3.8
Description of the problem: If there are some emoji (📌, 💡, 💾) in the text, inserting the text using SetText() will trim the last character.
Result:
![StyledTextCtrl Test](https://private-user-images.githubusercontent.com/166281/280241595-a7924cc3-ad65-4e67-8d90-6667d38ca913.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0Nzc5ODksIm5iZiI6MTcyMjQ3NzY4OSwicGF0aCI6Ii8xNjYyODEvMjgwMjQxNTk1LWE3OTI0Y2MzLWFkNjUtNGU2Ny04ZDkwLTY2NjdkMzhjYTkxMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwMVQwMjAxMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kOGRlM2RiM2UzMzRlNzg4NmY3ZDk5MTRiYTQ2MWRjNDUwYmEyZDUxZGU4Mzc3NjdmYWQ0NmRlMjgzYzZmZGY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.xh-5jMQ6hTNwEnn9hcusJz6aPtIMekBktFJXGJxJW30)
The text was updated successfully, but these errors were encountered: