From killern at rambler.ru Fri Aug 2 09:06:47 2013 From: killern at rambler.ru (killern at rambler.ru) Date: Fri, 2 Aug 2013 13:06:47 +0600 Subject: [Pygui] Bug in Win32 Label.py Message-ID: <596752664.20130802130647@rambler.ru> Hi. code: label_x=Label(u"????????", just = 'center') bug: Traceback (most recent call last): File "D:\Python27\lib\site-packages\GUI\Label.py", line 77, in OnPaint dc.DrawText(line, r, dt_format) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) (null) win32ui.error: OnPaint() virtual handler (>) raised an exception Please use WinAPI DrawTextW. Please do not use the MFC, unnecessary dependence. From regnstrom at flowtech.se Fri Aug 30 17:15:19 2013 From: regnstrom at flowtech.se (=?UTF-8?Q?Bj=C3=B6rn_Regnstr=C3=B6m?=) Date: Fri, 30 Aug 2013 17:15:19 +0200 Subject: [Pygui] PyGUI and Python3 Message-ID: <1377875719.5220b7073e6c8@go.flowtech.se> Hi, This is the same question that Gertwin Groen raised 13-06-13. I have installed the latest PyGUI and Python 3.3.2 on OSX 10.8.4. When trying to run the blobedit example several syntax issues are found by the compiler and running the 2to3 utility on the code does not help. After changing the code to python3 syntax it dies with the message Traceback (most recent call last): ? File "blobedit.py", line 16, in ? ? from GUI import Application, ScrollableView, Document, Window, Cursor, rgb ? File "/Users/bjre/kaa/GUI/Cocoa/ScrollableView.py", line 8, in ? ? from GUI.GScrollableViews import ScrollableView as GScrollableView, \ ? File "/Users/bjre/kaa/GUI/Generic/GScrollableViews.py", line 8, in ? ? from GUI import DrawableContainer ? File "/Users/bjre/kaa/GUI/Cocoa/DrawableContainer.py", line 74, in ? ? class PyGUI_User_NSView(PyGUI_Flipped_NSView, PyGUI_NS_ViewBase): TypeError: multiple bases have instance lay-out conflict I am a python novice so it is likely that I have done something wrong. The problem above seems to be due to differences between python 2 and 3 and not trivial to figure out, so some help would be much appreciated. Regards, Bj?rn Regnstr?m -------------- next part -------------- An HTML attachment was scrubbed... URL: