-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
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
Icons for "Move left, Move right, Remove character", replaced by unicode strings #65
Comments
Thanks. I've reproduced, and reverted 58b8989. |
@quozl |
Why? Issue still exists, if the Port to Python 3 source code is used. All I've done by reverting is remove the issue from the master branch. We still need the source code ported to Python 3. |
Thanks. Did some work around.
To avoid such confusion(at least after the Port to python 3 commit is merged), I think we should do any further changes, compatible with Python 3 and test those with Python 3 version of the toolkit. But since we don't have Python 3 packages yet, we can't scale, so we should wait to have packages before merging "Port to Python 3" to master. @quozl @nswarup14 What do you suggest? |
@nswarup14 I am still confused how you got this issue. Please help. |
Thanks for diagnosing. It reminds me again how I should not test activities using |
I am confused, did I did anything wrong ? 😅 |
Can you think of a way to detect and warn when an activity is run in Python 2 when it has already been ported to Python 3? 😁 |
I think we already have it, please see sugarlabs/sugar-toolkit-gtk3@aa8a5e7#diff-35db2ad94d2c22d773bce7bb50fdacafR131. If we have in mind that we are testing for Python 3 activity, and we still get this warning, means something is wrong 😁 We can edit the warning, adding "or you might be using the wrong toolkit version" or something like that 😅 . |
We don't have in mind that we are testing a Python 3 activity. As far as I know, only you and I can do that at the moment, using hand crafted configurations. |
Thanks, Agreed. I have something in mind, like somehow reading the Python version from the environment and then comparing it with the command line input, I will try that and let you know :-) |
Check if |
I've tried cherry-picking 58b8989 and resolving a conflict, but something between then and now has broken it; calculations display no result, and logs contain;
def process(self):
"""Parse the equation entered and show the result."""
s = str(self.text_entry.get_text())
s = numParser.standard(s)
label = str(self.label_entry.get_text()) So it seems the new numParser requires unicode data type? Anyone have any ideas? |
@quozl The issue is fixed. We forgot to close this. |
Attached screenshot below which shows the problem
![calculate](https://user-images.githubusercontent.com/34597895/60401049-af9b4180-9b99-11e9-8cf4-de3870630dee.png)
Rather than displaying the icons, unicode strings such as "\u2190 ,\u2192" are displayed.
Checked the between d21e910 and 58b8989. The issue is introduced in the latter commit.
The text was updated successfully, but these errors were encountered: