Re: [PyKDE] [eric3] file/class browser
> > 1) how can I do to use the ``window>project browser'' on a site-package. > > Just use the built in file browser. You can even have it remember the > sqlobject site-package and display it on the top level. great . how do you do that eric remember it ? the built in file browser comes with the debuger window. It consumes a lot of space to have both windows: project and debugger. Maybe, the best will be to have in the source browser the source of the project in a certain color and in a more shaded color the python file belonging to the distribution ( not all, but only the one that people wants to see) > > 2) is there a way to point out in the project browser, where we are. > > eg: we are in the module test.py, inside a class Foo, inside the definition > > bar and then we ask ``point me in the project borwser'' > > > > and then project browser goes > > > > from: > > |-- test1.py > > > > `-- test2.py > > > > |-- cFoo21 > > > > `-- cFoo22 > > `-- fBar221 > > > > to: > > |-- test1.py > > | > > | |-- cFooWhatEver > > | |-- cFoo > > | | > > | | |-- dBarWhatElse > > | | > > | | `-- dBar <<- with this line enlighted ?? > > | > > | `-- cFooOrWhat > > | > > `-- test2.py > > > > |-- cFoo21 > > > > `-- cFoo22 > > `-- fBar221 > > > > > > Ced. > > That could be added. What would it be good for? mmh. firstly, for coherence. from a window you can point out in the other window and vice-versa. Secondly, as I told you, if you start using a new module or a new site-package when you use a method/class in your python project. You can desire to see how the stuff that you use is made off. But now, you only have the half of the tool. You can find a definition, but you cannot see how this method/function in is oo space. So you cannot easily browse this part of the project (yeah I know, this part is not really belonging to the project :) ) If you give a shortcut to point in the code from the class browser, it will be a good idea to give the same shortcut to point in the class browser from the code. > Detlev > -- > Detlev Offenbach > [EMAIL PROTECTED] -- Cedric BRINER ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] Deallocating multiple non-modal Dialogs from the same class
Hi, I have a problem. I have a python dialog class derived from QDialog that must be instanced many times and be showed in a non-modal way. I discovered that I need to set the parent of the instances to the main window because if I set it to None the dialog shows and returns inmediately from his exec_loop(). This is working ok, but the problem is that I think the instances are never deallocated, so the application will leak memory. By what I know about PyQT design, they aren't deallocated because a parent is set, so they will be alive until the parent dies. But the parent in this case is the application main window, and I can't set the parent to None because the problem explained before. Also, I cant make the class singleton because multiple instances of the dialog must be showed at the same time with different data. So, what I can do to instantiate multiple dialogs (at the same time) from the main window _and_ then make sure that are deallocated? Note, I exit from the dialogs with a done(x) triggered by a dialog button clicked() signal. (If somebody needs an example script in addition to this description of the problem, please tell me and I will post it). Saludos, Nahuel Greco. ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] [eric3] file/class browser
That could be added. What would it be good for? It's sometimes nice in larger projects when you browse a file that e.g. contains a class which has a method foo, which in turn calls a bar method in that very class. Then you can simply use the object browser to jump there instead of skimming through the file. BTW, a feature that I'm personally missing most in all not emacs/vi-flavoured editors is an incremental search with a minibuffer-style search dialog.The reason is simply that the rather large search dialog obstructs the editor view. And the ability to search forward/backward from the current cursor position with possible wrap arounds instead of always beginning at the top would also be great. Any chances for this? Thanks, Diez ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] [eric3] redirect stdin/out/err
Am Montag, 11. Juli 2005 13:26 schrieb Guest007: > Hello all, > > Sorry for my stupid question, but I can't find error report of my console > programm. In eric3 I can see Log-Viewer, but it's tabs always empty. > > stdout redirected in Shell, when I'm checked a checkbutton in > Debugger->Python and stay invisible, when it's not checked. In this case > stdout can be visible in console, where I start eric3. > > stderr not visible, but I allways receive a window with, I guess, last > string from stderr. But this information is not complete for me in many > cases. And another big problem -- opening new tab with file, that generate > error. But in many times that file -- from standard or additional modules, > libraries, frameworks. For example: > === > #python test.py > Traceback (most recent call last): > File "test.py", line 390, in ? > fill() > File "test.py", line 383, in fill > type=d_t3) > File "/home/guest007/lib/python/sqlobject/main.py", line 1067, in > __init__ self._create(id, **kw) > File "/home/guest007/lib/python/sqlobject/main.py", line 1100, in _create > self._SO_finishCreate(id) > File "/home/guest007/lib/python/sqlobject/main.py", line 1124, in > _SO_finishCreate > id, names, values) > File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 355, in > queryInsertID > return self._runWithConnection(self._queryInsertID, soInstance, id, > names, values) > File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 217, in > _runWithConnection > val = meth(conn, *args) > File "/home/guest007/lib/python/sqlobject/sqlite/sqliteconnection.py", > line 84, in _queryInsertID > q = self._insertSQL(table, names, values) > File "/home/guest007/lib/python/sqlobject/sqlite/sqliteconnection.py", > line 102, in _insertSQL > return DBAPI._insertSQL(self, table, names, values) > File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 347, in > _insertSQL > return ("INSERT INTO %s (%s) VALUES (%s)" % > File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 639, in > sqlrepr > return sqlrepr(v, self.dbName) > File "/home/guest007/lib/python/sqlobject/converters.py", line 202, in > sqlrepr > return converter(obj, db) > File "/home/guest007/lib/python/sqlobject/converters.py", line 180, in > DateTimeConverter > return value.strftime("'%Y-%m-%d %H:%M:%S'") > ValueError: year=1880 is before 1900; the datetime strftime() methods > require year >= 1900 > > I want to see last string as error description and 383'th line of test.py > in editor tab. But eric3 open converters.py in new tab and I must close it, > and loose a time for searching my test.py (it's always opened, but can be > not first or last in tabs order). > > > Sorry for my English. I hope, it not make a problem... If your program throws an exception, that should be shown by eric3. If it isn't please try to create a test script, that shows the observed behaviour and send it to me. Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] [eric3] file/class browser
Am Dienstag, 12. Juli 2005 11:41 schrieb Cedric BRINER: > hi, > > 1) how can I do to use the ``window>project browser'' on a site-package. > > for eg. > I start using the sqlobject site-packages. This site-package is quite > complex to me, and I'd like to browse the class from inside my test > project. > > the only solution that I found is to copy all my site-package on the > project directory. : ( Just use the built in file browser. You can even have it remember the sqlobject site-package and display it on the top level. > > 2) is there a way to point out in the project browser, where we are. > eg: we are in the module test.py, inside a class Foo, inside the definition > bar and then we ask ``point me in the project borwser'' > > and then project browser goes > > from: > |-- test1.py > > `-- test2.py > > |-- cFoo21 > > `-- cFoo22 > `-- fBar221 > > to: > |-- test1.py > | > | |-- cFooWhatEver > | |-- cFoo > | | > | | |-- dBarWhatElse > | | > | | `-- dBar <<- with this line enlighted ?? > | > | `-- cFooOrWhat > > `-- test2.py > > |-- cFoo21 > > `-- cFoo22 > `-- fBar221 > > > Ced. That could be added. What would it be good for? Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] where is logconf.py?
Paul Elliott wrote: Hello, I am trying to learn python and eric, so I will probably be asking some dumb questions for a while I am trying to figure out logging. In http://www.red-dove.com/python_logging.html it refers to something called the GUI configurator, logconf.py. But I can not find it in my 2.4 python distribution, even though it has logging.config. You can download it from the very site you cite - it's a proprietary piece of software, not in the standard lib. Generally this list is not well suited for such questions, as it's dedicated to the usage of pyqt, pykde and maybe eric - but there is the python tutor list, the python list and the comp.lang.python NG (which is mirrored to the python ML) for you to ask questions. http://mail.python.org/mailman/listinfo/tutor http://mail.python.org/mailman/listinfo/python-list regards, Diez ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] where is logconf.py?
Hello, I am trying to learn python and eric, so I will probably be asking some dumb questions for a while I am trying to figure out logging. In http://www.red-dove.com/python_logging.html it refers to something called the GUI configurator, logconf.py. But I can not find it in my 2.4 python distribution, even though it has logging.config. Has this program been replaced by another program? Where do I get this functionality for 2.4. Thank You. -- Paul Elliott 1(512)837-1096 [EMAIL PROTECTED]PMB 181, 11900 Metric Blvd Suite J http://www.io.com/~pelliott/pme/ Austin TX 78758-3117 pgpH6db7oXFBV.pgp Description: PGP signature ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] BlackAdder?
Hello, is anyone here seriously using BlackAdder for development of PyQt applications? How does it compare to other commercial IDEs (especially concerning stability) such as for example WingIDE? TIA, Sincerely Wolfgang Keller -- P.S.: My From-address is correct ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] [eric3] file/class browser
hi, 1) how can I do to use the ``window>project browser'' on a site-package. for eg. I start using the sqlobject site-packages. This site-package is quite complex to me, and I'd like to browse the class from inside my test project. the only solution that I found is to copy all my site-package on the project directory. : ( 2) is there a way to point out in the project browser, where we are. eg: we are in the module test.py, inside a class Foo, inside the definition bar and then we ask ``point me in the project borwser'' and then project browser goes from: | |-- test1.py | `-- test2.py |-- cFoo21 `-- cFoo22 `-- fBar221 to: | |-- test1.py | |-- cFooWhatEver | |-- cFoo | | |-- dBarWhatElse | | `-- dBar <<- with this line enlighted ?? | `-- cFooOrWhat | `-- test2.py |-- cFoo21 `-- cFoo22 `-- fBar221 Ced. -- Cedric BRINER ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde