Start ClassDesigner from Terminal Window

Three windows appear
Object Info
Editor Code
Page Control Setting

Object Info & Editor disappear

I click OK on  Page Control Setting Window

Dabo Class Designer dPageStyled
Object Info
Editor Code
+ Other window too quick to see
Appear

Object Info
Editor Code
+ Other window
Disappear

Only Terminal & Dabo Class Designer dPageStyled

Remain
Ctrl-D
Shell Appears

pf = self.Application.PemForm
print "PemForm:", pf, pf.Visible, pf.Position

Reply:-
PemForm: <PemForm (baseclass dabo.ui.dForm, id:-222)> True (1227, 55)

pf.Position = (0, 0)
pf.show()

Nothing

Can Open Object Info from Menu
& Coding Editor


I then Saved File to see if I could continue.
On using saved class got following error:-

Traceback (most recent call last):
  File "/home/allan/dabo/ide/ClassDesigner.py", line 4458, in <module>
    clsDes = ClassDesigner(f)
  File "/home/allan/dabo/ide/ClassDesigner.py", line 259, in __init__
    frm = self.onNewDesign(None)
  File "/home/allan/dabo/ide/ClassDesigner.py", line 2049, in onNewDesign
    return self.openClass(dlg.fileToOpen)
  File "/home/allan/dabo/ide/ClassDesigner.py", line 754, in openClass
    obj = self.recreateChildren(frm.mainPanel, kids, None, False)
  File "/home/allan/dabo/ide/ClassDesigner.py", line 1262, in
recreateChildren
    ret = self._recreateControl()
  File "/home/allan/dabo/ide/ClassDesigner.py", line 990, in
_recreateControl
    skipUpdate=True, attProperties=atts)
  File "/home/allan/dabo/ide/ClassDesigner.py", line 2959, in addNewControl
    obj = mixedClass(parent, properties=props, attProperties=attProperties)
  File "/home/allan/dabo/ide/ClassDesigner.py", line 3065, in __init__
    apply(base.__init__,(self,) + args, kwargs)
  File "/home/allan/dabo/dabo/ui/uiwx/dPageFrame.py", line 290, in __init__
    attProperties=attProperties, *args, **kwargs)
  File "/home/allan/dabo/dabo/ui/uiwx/dPageFrameMixin.py", line 25, in
__init__
    attProperties=attProperties, *args, **kwargs)
  File "/home/allan/dabo/dabo/ui/uiwx/dPemMixin.py", line 198, in __init__
    self._setNameAndProperties(properties, **kwargs)
  File "/home/allan/dabo/dabo/ui/uiwx/dPemMixin.py", line 236, in
_setNameAndProperties
    self._setProperties(properties)
  File "/home/allan/dabo/dabo/ui/uiwx/dPemMixin.py", line 249, in
_setProperties
    self.setProperties(properties)
  File "/home/allan/dabo/dabo/lib/propertyHelperMixin.py", line 217, in
setProperties
    _setProps(propDict)
  File "/home/allan/dabo/dabo/lib/propertyHelperMixin.py", line 206, in
_setProps
    setter(self, _propDict[prop])
  File "/home/allan/dabo/dabo/ui/uiwx/dPageFrame.py", line 422, in
_setTabAreaColor
    raise ValueError(_("'%s' can not be translated into a color" % val))
ValueError: 'None' can not be translated into a color


I was able to create a Page using ClassDesigner and use same in place of
Page created by AppWizard

I replaced AppWizard Page in FrmClients.py

from PagEditClients import PagEditClients
with
PagEditClients = "MyPage.cdxml"

Is this correct way?

Is it possible to see & save created python from :-
MyPage.cdxmlf
as startup seems very long with this file in the program.

Even loading this form takes a while and Small Sizzer Window stays open for
quite awhile and Object Info & Code Editor window both grey-out for a
while.

Hope I have not asked too much at once.

Please say if I am doing something wrong.

Thanks for all your help so far.
Allan



On 29 May 2012 22:27, Ed Leafe <[email protected]> wrote:

> On May 29, 2012, at 3:19 PM, Allan Brooke wrote:
>
> > I have similar but no Object Info Form
>
>         Try this: from your designer form, type Ctrl-D to open the Command
> Window. Now type the following and let me know what happens:
>
> pf = self.Application.PemForm
> print "PemForm:", pf, pf.Visible, pf.Position
> pf.Position = (0, 0)
> pf.show()
>
>        Let me know what gets printed out, and if the prop sheet is visible
> afterwards.
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/[email protected]
>


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/CANjKA-nbEqBSJDVqc0=qNuPJrE9zvthgLH5W8ROqJp=blqh...@mail.gmail.com

Reply via email to