This the run.,  then the main.py file. the hours.cdxml is located in the ui
folder. If I remove the line
app.MainFormClass = "hours.cdxml",
I get a blank screen but no error.

> c:\dab\dabo\apps\pycon_hours\main.py(5)<module>()
-> import dabo
(Pdb) n
> c:\dab\dabo\apps\pycon_hours\main.py(6)<module>()
-> dabo.ui.loadUI("wx")
(Pdb)
> c:\dab\dabo\apps\pycon_hours\main.py(8)<module>()
-> app = dabo.dApp()
(Pdb)
> c:\dab\dabo\apps\pycon_hours\main.py(9)<module>()
-> app.MainFormClass = "hours.cdxml"
(Pdb)
> c:\dab\dabo\apps\pycon_hours\main.py(12)<module>()
-> app.BasePrefKey = "billing_tutorial"
(Pdb)
> c:\dab\dabo\apps\pycon_hours\main.py(13)<module>()
-> app.start()
(Pdb)
AttributeError: "'NoneType' object has no attribute 'addFrom'"
> c:\dab\dabo\apps\pycon_hours\main.py(13)<module>()
-> app.start()
(Pdb)
--Return--
> c:\dab\dabo\apps\pycon_hours\main.py(13)<module>()->None
-> app.start()
(Pdb)
===============================
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pdb
pdb.set_trace()
import dabo
dabo.ui.loadUI("wx")

app = dabo.dApp()
app.MainFormClass = "hours.cdxml"


app.BasePrefKey = "billing_tutorial"
app.start()
=========================================================

Ed Leafe wrote:
> 
> On Apr 28, 2010, at 11:16 PM, jvandal wrote:
> 
>> I have a trace debug pdb in my main.py(following the pycon2010 tutorial
>> page
>> 68). i get to the last statement ===
>> 
>> app.start
>> == 
>> and I get the 'nonetype object has no attribute "getForm"'
> 
>       Can you paste your code and the full traceback here? You have a typo (it
> should be 'app.start()'), so I'm guessing that you didn't copy this from
> your terminal.
> 
> 
> 
> -- 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]
> 
> 

-- 
View this message in context: 
http://old.nabble.com/NoneType--object-has-no-attribute-%22getForm%22-tp28396271p28408676.html
Sent from the dabo-users mailing list archive at Nabble.com.

_______________________________________________
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]

Reply via email to