Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] No preferences in IDE x.4 rev750
09-04-2013, 06:39 AM, (This post was last modified: 25-04-2013, 09:05 AM by Pinguino.)
#1
[SOLVED] No preferences in IDE x.4 rev750
/wxgui/editor/preferences.py

Clicking on the preferences button in the IDE toolbar does nothing -> workaround: comment out line 248

Code:
248         #self.checkListPreferences.SetChecked(checks)

/wxgui/load_features.py

Typo: line 67

Code:
67           else: elf.lat.notebookLateral.RemovePage(0)

should obviously be:

Code:
67           else: self.lat.notebookLateral.RemovePage(0)
Reply
10-04-2013, 01:17 AM,
#2
RE: No preferences in IDE x.4 rev750
Hi

about:
Code:
else: elf.lat.notebookLateral.RemovePage(0)
Oops my error, fixed on rev754

and about
Code:
self.checkListPreferences.SetChecked(checks)

Is it generates a trace when trying clicking on the preferences?, If so, could add?

Thanks.
Reply
10-04-2013, 12:36 PM,
#3
RE: No preferences in IDE x.4 rev750
Traceback (most recent call last):
File "/Users/trev/pinguino/rev750/wxgui/editor/general.py", line 975, in OnPreferences
frame_1.__initPreferences__(self)
File "/Users/trev/pinguino/rev750/wxgui/editor/preferences.py", line 60, in __initPreferences__
self.loadPreferences()
File "/Users/trev/pinguino/rev750/wxgui/editor/preferences.py", line 248, in loadPreferences
self.checkListPreferences.SetChecked(checks)
AttributeError: 'CheckListBox' object has no attribute 'SetChecked'
Reply
10-04-2013, 03:42 PM,
#4
RE: No preferences in IDE x.4 rev750
Hi
could you please replace these lines and tell me what happens?

line 244 in wxgui/editor/preferences.py
Code:
checks = []
for item in self.GlobalSet:
    value = self.IDE.getElse("Main", item, "True")
    if value: checks.append(self.GlobalSet.index(item))
self.checkListPreferences.SetChecked(checks)

with these lines:
Code:
for item in self.GlobalSet:
    value = self.IDE.getElse("Main", item, "True")
    if value: self.checkListPreferences.Check(self.GlobalSet.index(item))

thanks.
Reply
13-04-2013, 11:21 AM,
#5
RE: No preferences in IDE x.4 rev750
Fixes the non-appearance of the Preferences dialog, but a new pinguinoPanic if I try to enable the Tools -> Search option:

Code:
Traceback (most recent call last):
  File "/Users/trev/pinguino/rev750/wxgui/editor/preferences.py", line 288, in writeConfig
    self.IDE.applyPreferences()
  File "/Users/trev/pinguino/rev750/wxgui/editor/general.py", line 1046, in applyPreferences
    self.DrawToolbar()
  File "/Users/trev/pinguino/rev750/wxgui/editor/general.py", line 937, in DrawToolbar
    add2Toolbar("find", "Fin", self.Search.OnFind, _("Search in File"))
AttributeError: 'Pinguino' object has no attribute 'Search'
Reply
14-04-2013, 04:35 AM,
#6
RE: No preferences in IDE x.4 rev750
Hi
Fixed in rev.760, thanks.


(13-04-2013, 11:21 AM)Pinguino Wrote: Fixes the non-appearance of the Preferences dialog, but a new pinguinoPanic if I try to enable the Tools -> Search option:

Code:
Traceback (most recent call last):
  File "/Users/trev/pinguino/rev750/wxgui/editor/preferences.py", line 288, in writeConfig
    self.IDE.applyPreferences()
  File "/Users/trev/pinguino/rev750/wxgui/editor/general.py", line 1046, in applyPreferences
    self.DrawToolbar()
  File "/Users/trev/pinguino/rev750/wxgui/editor/general.py", line 937, in DrawToolbar
    add2Toolbar("find", "Fin", self.Search.OnFind, _("Search in File"))
AttributeError: 'Pinguino' object has no attribute 'Search'
Reply
14-04-2013, 09:12 AM, (This post was last modified: 14-04-2013, 09:14 AM by Pinguino.)
#7
RE: No preferences in IDE x.4 rev750
rev760

In the preferences dialog, Auto-completion -> Insert "argumentets" should presumably read "arguments".

Also, Auto-completion -> Single quotes: " should be quotes:' (a single quotation mark)

BTW, text in the "output" Window now shows up on OS X, but when changing boards, the chosen board is blank. See attached image.


Attached Files Thumbnail(s)
   
Reply
16-04-2013, 12:46 AM,
#8
RE: No preferences in IDE x.4 rev750
Hi

Quote:In the preferences dialog, Auto-completion -> Insert "argumentets" should presumably read "arguments".
Oops, sorry for this, really do not see the IDE in english, the system automatically adjusts to spanish for me.

Quote:Also, Auto-completion -> Single quotes: " should be quotes:' (a single quotation mark)
are two single quotes, but together, as {} but '', also the double quotes ""
But you're right, are confusing, not anymore.

Quote:BTW, text in the "output" Window now shows up on OS X, but when changing boards, the chosen board is blank. See attached image.
can you help me, with this?
try editing the lines 524 and 525

no comments (without the #)
Code:
self.logwindow.SetBackgroundColour (wx.Colour (0, 0, 0))
self.logwindow.SetForegroundColour (wx.Colour (255, 255, 255))

change colors?

else, try with other methods attempt to define WxPython colors, like:

Code:
self.logwindow.SetBackgroundColour (wxColour (0,0,255))
self.logwindow.SetBackgroundColour ('Blue')
self.logwindow.SetBackgroundColour ('# 0000FF')
self.logwindow.SetBackgroundColour ((0,0,255))

tell me, thanks.
Reply
16-04-2013, 01:04 AM, (This post was last modified: 16-04-2013, 01:07 AM by Pinguino.)
#9
RE: No preferences in IDE x.4 rev750
IDE x.4 rev763
OS X 10.6

Simply starting a brand new IDE svn pull, opening the preferences dialog and clicking OK and quitting the IDE, then starting the IDE again, the IDE crashes.

pinguinoPanic is empty.

diff of .config (original) and .config (after showing preferences and quitting):

Code:
diff .config .config.crash
2c2
< openlast = False
---
> openlast = True
5,15d4
< [Main]
< tools = True
< needrestart = False
< open-save = True
<
< [Last]
< last_count = 0
<
< [Source]
< userfontinoutput = False
<
19a9,10
> output/height = 97
> sourcedoc = official
20a12,13
> perspective = layout2|name=01a6b620516c8367000b1eff00000001;caption=Tools;state=1020;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=500;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=1313e000516c8367000b1f2a00000002;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=711;besth=330;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=13186920516c836700120af700000003;caption=Tools;state=1022;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=447;besth=470;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(3,0,0)=99|dock_size(5,0,0)=213|
> window/height = 532
22,24d14
< output/height = 97
< perspective = layout2|name=01a3d500516c860f000673ce00000001;caption=Tools;state=1020;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=500;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=01a355a0516c860f000673fd00000002;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=711;besth=330;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=12e9d780516c8610000d3c8800000003;caption=Tools;state=1022;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=447;besth=470;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(3,0,0)=99|dock_size(5,0,0)=213|
< window/height = 564
27a18,32
> [Last]
> last_count = 0
>
> [Source]
> userfontinoutput = False
>
> [Highligh]
> codeerror = [241, 0, 0]
>
> [Main]
> auto-complete = True
> tools = True
> needrestart = False
> open-save = True
>
30c35,36
< search = True
---
> search = False
> documents = True
trev@macmini3 [/Users/trev/pinguino/rev763] $

Apple Crash Report below:

Code:
Process:         Python [31884]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
Identifier:      org.python.python.app
Version:         2.6 (2.6)
Build Info:      python-440200~2
Code Type:       X86 (Native)
Parent Process:  bash [31882]

Date/Time:       2013-04-16 08:51:49.586 +1000
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Interval Since Last Report:          319774 sec
Crashes Since Last Report:           10
Per-App Interval Since Last Report:  89576 sec
Per-App Crashes Since Last Report:   8
Anonymous UUID:                      475BFE33-B0A6-4DAA-8652-94DC1B67C444

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000022652264
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   ???                               0x22652264 0 + 577053284
1   libwx_macud-2.8.0.dylib           0x010b5fa7 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 141
2   libwx_macud-2.8.0.dylib           0x010b8922 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 190
3   libwx_macud-2.8.0.dylib           0x010b8a3d wxEvtHandler::ProcessEvent(wxEvent&) + 255
4   libwx_macud-2.8.0.dylib           0x0113381d wxWindow::DoMoveWindow(int, int, int, int) + 927
5   libwx_macud-2.8.0.dylib           0x01133475 wxWindow::DoSetSize(int, int, int, int, int) + 309
6   libwx_macud-2.8.0.dylib           0x011b97c9 wxSizerItem::SetDimension(wxPoint const&, wxSize const&) + 431
7   libwx_macud-2.8.0.dylib           0x011bab32 wxBoxSizer::RecalcSizes() + 334
8   libwx_macud-2.8.0.dylib           0x011c701b wxWindowBase::Layout() + 69
9   libwx_macud-2.8.0.dylib           0x011e4a61 wxPanel::OnSize(wxSizeEvent&) + 29
10  libwx_macud-2.8.0.dylib           0x010b5fa7 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 141
11  libwx_macud-2.8.0.dylib           0x010b8922 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 190
12  libwx_macud-2.8.0.dylib           0x010b8a3d wxEvtHandler::ProcessEvent(wxEvent&) + 255
13  libwx_macud-2.8.0.dylib           0x0113381d wxWindow::DoMoveWindow(int, int, int, int) + 927
14  libwx_macud-2.8.0.dylib           0x01133475 wxWindow::DoSetSize(int, int, int, int, int) + 309
15  libwx_macud-2.8.0.dylib           0x011b97c9 wxSizerItem::SetDimension(wxPoint const&, wxSize const&) + 431
16  libwx_macud-2.8.0.dylib           0x011bab32 wxBoxSizer::RecalcSizes() + 334
17  libwx_macud-2.8.0.dylib           0x011babe9 wxBoxSizer::RecalcSizes() + 517
18  libwx_macud-2.8.0.dylib           0x011bab32 wxBoxSizer::RecalcSizes() + 334
19  libwx_macud-2.8.0.dylib           0x011babe9 wxBoxSizer::RecalcSizes() + 517
20  libwx_macud-2.8.0.dylib           0x011bab32 wxBoxSizer::RecalcSizes() + 334
21  libwx_macud-2.8.0.dylib           0x011bab32 wxBoxSizer::RecalcSizes() + 334
22  libwx_macud-2.8.0.dylib           0x011c701b wxWindowBase::Layout() + 69
23  libwx_macud-2.8.0.dylib           0x012b6234 wxAuiManager::DoFrameLayout() + 32
24  libwx_macud-2.8.0.dylib           0x012bc931 wxAuiManager::Update() + 1275
25  _aui.so                           0x12b13171 wxPyAuiDockArt::GetMetric(int) + 52593
26  org.python.python                 0x0000c6e0 PyObject_Call + 101
27  org.python.python                 0x0008c843 PyEval_EvalFrameEx + 21688
28  org.python.python                 0x0008cf74 PyEval_EvalCodeEx + 1720
29  org.python.python                 0x0008b5a1 PyEval_EvalFrameEx + 16918
30  org.python.python                 0x0008b4e5 PyEval_EvalFrameEx + 16730
31  org.python.python                 0x0008b4e5 PyEval_EvalFrameEx + 16730
32  org.python.python                 0x0008b4e5 PyEval_EvalFrameEx + 16730
33  org.python.python                 0x0008cf74 PyEval_EvalCodeEx + 1720
34  org.python.python                 0x0002ee0c PyClassMethod_New + 1823
35  org.python.python                 0x0000c6e0 PyObject_Call + 101
36  org.python.python                 0x0001c10d PyClass_New + 1603
37  org.python.python                 0x0000c6e0 PyObject_Call + 101
38  org.python.python                 0x0008678a PyEval_CallObjectWithKeywords + 171
39  _core_.so                         0x005a6e14 wxPyApp::_BootstrapApp() + 566
40  _core_.so                         0x005eb076 wxPyInstance_Check(_object*) + 250343
41  org.python.python                 0x0000c6e0 PyObject_Call + 101
42  org.python.python                 0x0008c843 PyEval_EvalFrameEx + 21688
43  org.python.python                 0x0008cf74 PyEval_EvalCodeEx + 1720
44  org.python.python                 0x0008b5a1 PyEval_EvalFrameEx + 16918
45  org.python.python                 0x0008cf74 PyEval_EvalCodeEx + 1720
46  org.python.python                 0x0002ed9f PyClassMethod_New + 1714
47  org.python.python                 0x0000c6e0 PyObject_Call + 101
48  org.python.python                 0x0001c10d PyClass_New + 1603
49  org.python.python                 0x0000c6e0 PyObject_Call + 101
50  org.python.python                 0x0008c812 PyEval_EvalFrameEx + 21639
51  org.python.python                 0x0008cf74 PyEval_EvalCodeEx + 1720
52  org.python.python                 0x0002ee0c PyClassMethod_New + 1823
53  org.python.python                 0x0000c6e0 PyObject_Call + 101
54  org.python.python                 0x0001c10d PyClass_New + 1603
55  org.python.python                 0x0000c6e0 PyObject_Call + 101
56  org.python.python                 0x00053d8a _PyType_Lookup + 5617
57  org.python.python                 0x00055bc1 PyType_GenericAlloc + 3133
58  org.python.python                 0x0000c6e0 PyObject_Call + 101
59  org.python.python                 0x0008c812 PyEval_EvalFrameEx + 21639
60  org.python.python                 0x0008b4e5 PyEval_EvalFrameEx + 16730
61  org.python.python                 0x0008cf74 PyEval_EvalCodeEx + 1720
62  org.python.python                 0x0008d019 PyEval_EvalCode + 87
63  org.python.python                 0x000a40af Py_CompileString + 111
64  org.python.python                 0x000a415b PyRun_FileExFlags + 139
65  org.python.python                 0x000a5e7e PyRun_SimpleFileExFlags + 814
66  org.python.python                 0x000b315c Py_Main + 3074
67  org.python.python.app             0x00001eb5 start + 53

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib                 0x99abc382 kevent + 10
1   libSystem.B.dylib                 0x99abca9c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib                 0x99abbf59 _dispatch_queue_invoke + 163
3   libSystem.B.dylib                 0x99abbcfe _dispatch_worker_thread2 + 240
4   libSystem.B.dylib                 0x99abb781 _pthread_wqthread + 390
5   libSystem.B.dylib                 0x99abb5c6 start_wqthread + 30

Thread 2:
0   libSystem.B.dylib                 0x99abb412 __workq_kernreturn + 10
1   libSystem.B.dylib                 0x99abb9a8 _pthread_wqthread + 941
2   libSystem.B.dylib                 0x99abb5c6 start_wqthread + 30

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0xa0ad58c0  ebx: 0x01111540  ecx: 0x00000000  edx: 0x00000000
  edi: 0x00000001  esi: 0x1325f380  ebp: 0xbfffbb58  esp: 0xbfffbaec
   ss: 0x0000001f  efl: 0x00010293  eip: 0x22652264   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x22652264

(16-04-2013, 12:46 AM)YeisonEng Wrote:
Quote:BTW, text in the "output" Window now shows up on OS X, but when changing boards, the chosen board is blank. See attached image.
can you help me, with this?
try editing the lines 524 and 525

no comments (without the #)
Code:
self.logwindow.SetBackgroundColour (wx.Colour (0, 0, 0))
self.logwindow.SetForegroundColour (wx.Colour (255, 255, 255))

change colors?

else, try with other methods attempt to define WxPython colors, like:

Code:
self.logwindow.SetBackgroundColour (wxColour (0,0,255))
self.logwindow.SetBackgroundColour ('Blue')
self.logwindow.SetBackgroundColour ('# 0000FF')
self.logwindow.SetBackgroundColour ((0,0,255))

Which file do you want me to edit ? :-)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)