Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
On Tue, 20 Jul 2010 09:25:58 -0400, Darren Dale dsdal...@gmail.com wrote: Are there some files missing from the plugins example? When I run main.py from the plugins example, I get: Traceback (most recent call last): File main.py, line 3, in module from recipes.plugins import RecipeChooserPlugin File /home/darren/Projects/dip/doc/examples/plugins/recipes/__init__.py, line 4, in module from .i_recipe_chooser import IRecipeChooser File /home/darren/Projects/dip/doc/examples/plugins/recipes/i_recipe_chooser.py, line 3, in module from stock import IStockLevels ImportError: No module named stock I think there may be two issues: the stock module/package is not included in the sources/hg repo, and an absolute import is being used rather than a relative import: $ grep -r StockLevels . ./recipes/plugins/recipe_chooser_plugin.py:from stock import IStockLevels ./recipes/plugins/recipe_chooser_plugin.py:stock_levels = self.service(IStockLevels) ./recipes/i_recipe_chooser.py:from stock import IStockLevels ./recipes/i_recipe_chooser.py:stock_levels = Instance(IStockLevels) No, it's not supposed to be a complete example. The plugin should be complete but (as it says in the docs) other plugins are assumed to provide additional functionality (including stock levels). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
On Mon, 19 Jul 2010 09:55:51 -0400, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: and when do you plan to support python 2.6.x? I don't promise to support it at all - originally dip was intended to be Python v3 only. However my experiments are going well. I hope to either release a version for Python v2.6/2.7 in the next couple of weeks - or say that they won't be supported at all. Phil On 7/17/10, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 17 Jul 2010 21:09:04 +0200, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). Agreed. I've worked with Enthought for several years and did the original port to PyQt amongst other things. There is a lot of good stuff in it. I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. There were many reasons to create a new framework, one being the need for Python v3 support and the desire to use Python v3 features. Another significant reason was the way that the Enthought stuff implements toolkit independence, ie. the compromises it makes in order to support wx and PyQt. As a PyQt programmer you often end up being frustrated that you can't get your GUIs to do what you want because TraitsUi is getting in the way. In dip, QWidgets are first class objects. When you create a GUI you get a QWidget, not something that wraps a QWidget in an API that is designed to support wx. Another example (which you'll understand if you are familiar with Traits) is that dip allows you to do... class MyClass(QObject, Model): ... ...where Model is the dip equivalent of HasTraits. Of course the Enthought stuff is very mature and has lots of stuff that dip doesn't have - for example it is very good for engineering applications that need 2D and 3D visualisation. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
Are there some files missing from the plugins example? When I run main.py from the plugins example, I get: Traceback (most recent call last): File main.py, line 3, in module from recipes.plugins import RecipeChooserPlugin File /home/darren/Projects/dip/doc/examples/plugins/recipes/__init__.py, line 4, in module from .i_recipe_chooser import IRecipeChooser File /home/darren/Projects/dip/doc/examples/plugins/recipes/i_recipe_chooser.py, line 3, in module from stock import IStockLevels ImportError: No module named stock I think there may be two issues: the stock module/package is not included in the sources/hg repo, and an absolute import is being used rather than a relative import: $ grep -r StockLevels . ./recipes/plugins/recipe_chooser_plugin.py:from stock import IStockLevels ./recipes/plugins/recipe_chooser_plugin.py:stock_levels = self.service(IStockLevels) ./recipes/i_recipe_chooser.py:from stock import IStockLevels ./recipes/i_recipe_chooser.py:stock_levels = Instance(IStockLevels) Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
and when do you plan to support python 2.6.x? On 7/17/10, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 17 Jul 2010 21:09:04 +0200, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). Agreed. I've worked with Enthought for several years and did the original port to PyQt amongst other things. There is a lot of good stuff in it. I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. There were many reasons to create a new framework, one being the need for Python v3 support and the desire to use Python v3 features. Another significant reason was the way that the Enthought stuff implements toolkit independence, ie. the compromises it makes in order to support wx and PyQt. As a PyQt programmer you often end up being frustrated that you can't get your GUIs to do what you want because TraitsUi is getting in the way. In dip, QWidgets are first class objects. When you create a GUI you get a QWidget, not something that wraps a QWidget in an API that is designed to support wx. Another example (which you'll understand if you are familiar with Traits) is that dip allows you to do... class MyClass(QObject, Model): ... ...where Model is the dip equivalent of HasTraits. Of course the Enthought stuff is very mature and has lots of stuff that dip doesn't have - for example it is very good for engineering applications that need 2D and 3D visualisation. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... - the dip-builder tool for creating initial application stubs and then turning applications into deployable packages - a component based system based on plugins, services and extension points - a declarative type system - the ability to define interfaces and write adaptors that allow objects to appear to implement an interface without having to change the object - the ability to create testable user interfaces declaratively - a default user interface shell, based on QMainWindow - a framework for defining storage and data formats for reading and writing application objects - hooks to support other Qt-based toolkits (specifically PyKDE) so that an application can automatically choose to use an alternative if one is available dip is designed both for developing new code and for integrating existing code to create new applications. It does not require the wholesale adoption of the framework - just use what you find useful. If you want, replace parts of it with your own implementation if you don't like the default behaviour. Obviously with a v0.1 release there is some work still to do. However the existing API is considered to be fairly stable and future development will be concentrated on new features. dip is licensed the same as PyQt - GPL and commercial. Although Python v3 is specifically targeted I will be investigating how easy it will be to also support Python v2.6 and v2.7. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. Best regards -- Antonio Valentino ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
yes, I think that there are some features that are the same in both (entought toolkit and dip) but, in my opinion, enthought toolkit is too performance eater. On 7/17/10, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. Best regards -- Antonio Valentino ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
there is no version for python = 2.6.x? On 7/17/10, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: yes, I think that there are some features that are the same in both (entought toolkit and dip) but, in my opinion, enthought toolkit is too performance eater. On 7/17/10, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. Best regards -- Antonio Valentino ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
where to download dip? On 7/17/10, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: there is no version for python = 2.6.x? On 7/17/10, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: yes, I think that there are some features that are the same in both (entought toolkit and dip) but, in my opinion, enthought toolkit is too performance eater. On 7/17/10, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. Best regards -- Antonio Valentino ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - -- Lic. José M. Rodriguez Bacallao Centro de Biofisica Medica - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales - ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
where to download dip? Maybe here : http://www.riverbankcomputing.com/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3
On Sat, 17 Jul 2010 21:09:04 +0200, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Phil, Il giorno Sat, 17 Jul 2010 18:02:57 +0100 Phil Thompson p...@riverbankcomputing.com ha scritto: dip v0.1 has been released. This is the first release of dip, an application development framework for PyQt and (for the moment at least) Python v3. The user documentation, including tutorials and a full API reference is available at http://www.riverbankcomputing.com/static/Docs/dip/index.html dip is suitable for developing simple utilities and large scale, complex applications. It includes the following features... [...] first of all congratulations for the great job. I have still not finished to read the docs but it seems to me that many of the features provided by dip are also present in the enthought framework (Traits, Envisage, etc.). Agreed. I've worked with Enthought for several years and did the original port to PyQt amongst other things. There is a lot of good stuff in it. I would like to ask you why you decided to develop a new framework and which are advantages/drawbacks of using dip instead of enthought. There were many reasons to create a new framework, one being the need for Python v3 support and the desire to use Python v3 features. Another significant reason was the way that the Enthought stuff implements toolkit independence, ie. the compromises it makes in order to support wx and PyQt. As a PyQt programmer you often end up being frustrated that you can't get your GUIs to do what you want because TraitsUi is getting in the way. In dip, QWidgets are first class objects. When you create a GUI you get a QWidget, not something that wraps a QWidget in an API that is designed to support wx. Another example (which you'll understand if you are familiar with Traits) is that dip allows you to do... class MyClass(QObject, Model): ... ...where Model is the dip equivalent of HasTraits. Of course the Enthought stuff is very mature and has lots of stuff that dip doesn't have - for example it is very good for engineering applications that need 2D and 3D visualisation. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt