Re: IDLE dedent/unindent key bindings for non-us keybord?
On 2 Oct 2005 08:52:53 -0700, [EMAIL PROTECTED] wrote: >Hi. > >I use Idle 1.1.1 on Python 2.4.1. > >The "Ctrl-[" and "Ctrl-]" key bindings for indenting do not work on >non-us keyboards where brackets are accessed by the "Alt Gr" key. > >The Tab key seem to work for indenting a selected textblock on my >swedish keyboard, but Shift-tab does not dedent as you would have >expected. > >If I try to redefine key bindings in "options->Configure IDLE->Keys" so >that Shift-Tab is bound to dedent, things seem to get really weird. > >After creating a "Custom key set" >- the "Ok"-button does not close the options window, I have to use >"Cancel" to get out. > I'v seen this also: this must be a bug. Exception in Tkinter callback Traceback (most recent call last): File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__ return self.func(*args) File "C:\Python24\lib\idlelib\configDialog.py", line 1197, in Apply self.ActivateConfigChanges() File "C:\Python24\lib\idlelib\configDialog.py", line 1185, in ActivateConfigCh anges instance.ResetKeybindings() File "C:\Python24\lib\idlelib\EditorWindow.py", line 585, in ResetKeybindings self.apply_bindings() File "C:\Python24\lib\idlelib\EditorWindow.py", line 837, in apply_bindings text.event_add(event, *keylist) File "C:\Python24\lib\lib-tk\Tkinter.py", line 1299, in event_add self.tk.call(args) TclError: bad event type or keysym "tab" Exception in Tkinter callback Traceback (most recent call last): File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__ return self.func(*args) File "C:\Python24\lib\idlelib\configDialog.py", line 1192, in Ok self.Apply() File "C:\Python24\lib\idlelib\configDialog.py", line 1197, in Apply self.ActivateConfigChanges() File "C:\Python24\lib\idlelib\configDialog.py", line 1185, in ActivateConfigCh anges instance.ResetKeybindings() File "C:\Python24\lib\idlelib\EditorWindow.py", line 585, in ResetKeybindings self.apply_bindings() File "C:\Python24\lib\idlelib\EditorWindow.py", line 837, in apply_bindings text.event_add(event, *keylist) File "C:\Python24\lib\lib-tk\Tkinter.py", line 1299, in event_add self.tk.call(args) TclError: bad event type or keysym "tab" next time, I start: C:\Python24\Lib\idlelib>idle.py error reading package index file C:/Python24/tcl/tix8.1/pkgIndex.tcl: invalid co mmand name "lt}]}" Traceback (most recent call last): File "C:\Python24\Lib\idlelib\idle.py", line 21, in ? idlelib.PyShell.main() File "C:\Python24\lib\idlelib\PyShell.py", line 1355, in main if not flist.open_shell(): File "C:\Python24\lib\idlelib\PyShell.py", line 275, in open_shell self.pyshell = PyShell(self) File "C:\Python24\lib\idlelib\PyShell.py", line 793, in __init__ OutputWindow.__init__(self, flist, None, None) File "C:\Python24\lib\idlelib\OutputWindow.py", line 16, in __init__ EditorWindow.__init__(self, *args) File "C:\Python24\lib\idlelib\EditorWindow.py", line 108, in __init__ self.apply_bindings() File "C:\Python24\lib\idlelib\EditorWindow.py", line 837, in apply_bindings text.event_add(event, *keylist) File "C:\Python24\lib\lib-tk\Tkinter.py", line 1299, in event_add self.tk.call(args) _tkinter.TclError: bad event type or keysym "tab" (On Windows) I discovered, looking in C:\.idlerc\config-keys.cfg there was the entry dedent-region = with an editor you can change it to uppercase: dedent-region = then it works again. HTH -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: how to debug when "Segmentation fault"
On Wed, 05 Oct 2005 14:53:45 +0200, Tamer Fahmy <[EMAIL PROTECTED]> wrote: >On Tue, 04 Oct 2005 19:13:10 +0300, Maksim Kasimov wrote: >> my programm sometime gives "Segmentation fault" message (no matter how >> long the programm had run (1 day or 2 weeks). And there is nothing in >> log-files that can points the problem. My question is how it possible to >> find out where is the problem in the code? Thanks for any help. >> >> Python 2.2.3 >> FreeBSD > >you could start your program within a gdb session like so: > >$ gdb python >GNU gdb 6.1.1 [FreeBSD] >Copyright 2004 Free Software Foundation, Inc. GDB is free software, >covered by the GNU General Public License, and you are welcome to change >it and/or distribute copies of it under certain conditions. Type "show >copying" to see the conditions. There is absolutely no warranty for GDB. >Type "show warranty" for details. This GDB was configured as >"i386-marcel-freebsd"...(no debugging symbols found)... >(gdb) r foo.py >Starting program: /usr/bin/python foo.py ... > >once your progmam segfaults you can then inspect the stack through: > >(gdb) bt > >cheers, > tamer. Tamer, thanks for your tip. I tried Jeff's code: import marshal f = lambda: None code = marshal.loads(marshal.dumps(f.func_code).replace('d\0\0S','d\xff\xffS')) f.func_code = code f() saved it as foo.py, than C:\Python24\Lib>gdb python GNU gdb 5.1.1 (mingw experimental) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "mingw32"...(no debugging symbols found)... (gdb) r foo.py Starting program: C:\Python24/python.exe foo.py Program received signal SIGSEGV, Segmentation fault. 0x1e027b23 in ?? () (gdb) bt #0 0x1e027b23 in ?? () #1 0x00977240 in ?? () #2 0x1e1a82b8 in ?? () Cannot access memory at address 0x7 (gdb) How can I interpret this results? ;) Am I right, that I need a debug build of python built with mingw or cygwin in Windows? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: IDLE dedent/unindent key bindings for non-us keybord?
On Wed, 12 Oct 2005 14:58:18 +0200, "Adriaan Renting" <[EMAIL PROTECTED]> wrote: >You could try using the Qscintilla based Eric3 IDE, it uses Ctrl-i and >Ctrl-Shift-i. > That is possible. But what has it to do with the original post? Apart from that, in Idle you can bind them it to Ctrl-i and Ctrl-Shift-i also. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Any 3state Check Tree Ctrl for wxPython available?
On Mon, 17 Oct 2005 12:14:47 +0200, "Petr Prikryl" <[EMAIL PROTECTED]> wrote: >Hi, > >I am experimenting with wxPython on Windows box. >What I need to implement is a check tree control >with 3 states for each checkbox: unchecked, checked, >gray checked. The status of the checkbox should reflect >the status of the children. When ALL children are checked, >then the status should be checked. When NO children >are checked, the status should be unchecked. When >SOME children are selected, the status should be >checked with gray background. > >I have found something else that could be valuable >after I start understand that: > >http://mitglied.lycos.de/drpython/CheckTreeCtrl.tar > Hello Petr, It is incidentally from my webpage :) I uploaded it once, because I didn't find it anywhere on the web; a person asked for it and I had it on my harddisk. >Anyway, is there something similar with 3 states >available around? To your problem: What about enhancing/deriving from CheckTreeCtrl and exending it? > >Thanks for your time and experience, > >pepr -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: IDE recommendation please
On Sun, 23 Oct 2005 14:54:38 +1000, microsnot <[EMAIL PROTECTED]> wrote: >I'm new to Python but am wondering what IDE Python developers use? I use DrPython ;) >I use Mac >OS X 10.4.2. I have PythonIDE which comes with MacPython but I don't think >that has even rudimentary "intellisense". DrPython has a "Code Completition" plugin. It combines "Autocompletion" and "Calltips" -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: IDE recommendation please
On 23 Oct 2005 18:39:17 -0700, "Brendan" <[EMAIL PROTECTED]> wrote: >As mentioned, there isn't a whole lot. I've beta tested Komodo, and it >looks promising. SPE might start working now that stani has a mac. > >For now I use TextWrangler - a free text editor with good python >support. http://www.barebones.com/products/textwrangler/index.shtml > >For interactive python, I use PyCrust (though the terminal works just >as well) I second want to encourage the use of PyCrust. If you hit '(', you will get a calltip, the same is on '.' for code completion. If you are for example on: I myself made a patch for getting calltips and Code Completion on demand, that means, you don't have to go back and clear the already typed text and enter '(' or '.' again. I assigned them to Ctrl-Space (code completion) and Ctrl-Shift-Space for calltips. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: DrPython - auto complete
On 26 Oct 2005 07:31:00 -0700, "jas" <[EMAIL PROTECTED]> wrote: >Hi, > I just started to use DrPython and I have installed the >CodeCompletion plugin. I am using DrPython 161 (on windows) with >wxPython 2.6.1. Anyhow, when I try something like > >x = [] >x. > >...it pops up "x.filename", "x.prepend" and "x.word". Shouldn't it >show "x.append", "x.pop", etc? > >Just curious if anyone else uses this and has this problem. Or maybe >the code completion doesn't work like I expect. Hi, definitively a bug, I have forwarded it into DrPython Bug Tracker. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: [wxpython] exclude files in a wx.FileDialog?
On 18 Jan 2005 13:23:24 GMT, John Field <[EMAIL PROTECTED]> wrote: >Hello, > >Is it possible to exclude certain files in a wx.FileDialog, so that the user >won't see them and can't select them with the mouse in de File open window? > >I was thinking of somehow extending the class FileDialog(Dialog) >in the wx module _windows.py to a subclass, but I'm not sure how to do that >(if feasible). > > >cheers wx.FileDialog is only a wrapper for the api FileDialog (at least this applies for windows) and therefore it is not possible to derive from it. Really exclude, I think, is not possible. You can put a mask wx.FileDialog(...wildcard = "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif") Otherwise you have to create your own FileDialog. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: What's the best python web-developer's editor
On Thu, 20 Jan 2005 18:47:53 +, andy <[EMAIL PROTECTED]> wrote: >Anybody like to comment on which editor they use for python web app >development - for both discrete and mixed python and html code, and why? > I use DrPython, because: It is open source, written in python and wxPython and use wx.stc. It is extensible via plugins and script, you have a python prompt, free shortcut assignments, ... It is developed heavily. I'm a member of the project :) http://sourceforge.net/projects/drpython/ >I'm comfortable with IDLE (used it for years) but of course it lacks ftp >or webDAV abilities, obviously because it's not intended for that type >of use. What do you mean with ftp abilities exactly? Saving and opening files directly over ftp? >[...] regards, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Profiling and speed up
Hi Newsgroup, I'm looking for a way to measure the performance of an app, which is built in wxPython and uses the styled text control Then after discovering some bottlenecks, to speed up things; first of all minimize the startup time. and then speed up the stc. Someone is experienced and could show me a way or give me tips? Are there some tools in python (beside of the profile module), best if it would be graphical like performance analysis from DevPartner for Visual C++? Second question: python has a kind of garbage collector. But could it be, because of some bad programming style, that memory is wasted more and more? Many thanks in advance! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Profiling and speed up
On Fri, 28 Jan 2005 10:03:30 +, Stephen Kellett <[EMAIL PROTECTED]> wrote: >Python Performance Validator > >http://www.softwareverify.com/pythonPerformanceValidator/index.html Thanks, but I forgot to say, I'm looking for open source or freeware. (I need it also for open source). -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Where can I find sample "beginner" programs to study?
On Fri, 28 Jan 2005 21:41:05 +0100, moma <[EMAIL PROTECTED]> wrote: >Eggs are here. Bring some bacon. >http://www.python-eggs.org/links.html Hi, interesting site, but who is maintaining this page. I'd like to add some new links. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE
On 18 Jul 2005 22:32:43 -0700, "linuxfreak" <[EMAIL PROTECTED]> wrote: >Tried SPE and >Dr.Pyhton but the former crashes regulary and the latter is quite >unweildy and does not have a great many features Hello, what are you missing in DrPython? Did you took a look at the plugins? What do you mean by "unweildly"? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE
On 19 Jul 2005 19:56:49 -0700, "Luis M. Gonzalez" <[EMAIL PROTECTED]> wrote: >Have you tried PyCrust? >http://sourceforge.net/projects/pycrust/ It is long time ago, that pycrust was delevoped as sourceforge project. It is part of the wxPython distribution and I have recently added some features. You could take a look at wxPython-user mailing list. Pycrust is great to try/play with Python and wxPython. But also DrPython has a powerful shell prompt. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Centering text in a wx.ListBox w/ wxPython
On 26 Jun 2005 22:34:31 -0700, "fo" <[EMAIL PROTECTED]> wrote: >How do I center each item in the ListBox widget? Hm, I don't think, this is possilble. >Also, is it possible to change the color of the selected item? right >now it uses the OSes color. I would like it to be consistant on every >machine. for example: listbox.SetForegroundColour(wx.BLUE) -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] XPN 0.5.0 released
On Mon, 25 Jul 2005 08:41:03 GMT, Nemesis <[EMAIL PROTECTED]> wrote: >XPN (X Python Newsreader) is a multi-platform newsreader with Unicode >support. It is written with Python+GTK. It has features like >scoring/actions, X-Face and Face decoding, muting of quoted text, >newsrc import/export, find article and search in the body, spoiler >char/rot13, random taglines and configurable attribution lines. >[...] Hello Nemesis, cool, thank you, I like Xpn. Even better would be, if the Application would be written in wxPython :) Would it be possible to also customize the fonts in the groups and threads pane (I'd like to have everywhere proportional (monospaced fonts). -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] XPN 0.5.0 released
On Mon, 25 Jul 2005 15:47:13 GMT, Nemesis <[EMAIL PROTECTED]> wrote: >[...] Hello Nemesis, >> Would it be possible to also customize the fonts in the >> groups and threads pane (I'd like to have everywhere proportional >> (monospaced fonts). > >Not at the moment, maybe in the future ... but of course if you can't >wait you can modify the source by yourself, the files to modify are >xpn_src/Groups_Pane.py and xpn_src/Threads_Pane.py >just add the line > >import pango > >in the both the files, and then: >at the end of Groups_Pane.py add this line (do not change the >indentation): > >self.groups_list.modify_font(pango.FontDescription("monospace 10")) > >at the end of Threads_Pane.py add this line (do not change the >indentation): > >self.threads_tree.modify_font(pango.FontDescription("monospace 10")) > >of course you can change the font description as you like. thank you for the tip. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Getting not derived members of a class
Hello NG, I want to retrieve the members of a class with a baseclass. But the problem is, how to get the non derived members. class a: def who(self): print "who" def __init__(self): self._a = 3 class b(a): def who1(self): print "who1" def __init__(self): a.__init__(self) self._b = 4 y=b() dir (y) ['__doc__', '__init__', '__module__', '_a', '_b', 'who', 'who1'] I need a function which lists only the members of the "not derived" class (here class B). _b _who1 __init__ How can I achieve this? With the introspect module or so? many thanks in advance! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Getting not derived members of a class
On 1 Aug 2005 07:43:22 -0700, "George Sakkis" <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: > >> Hello NG, >> >> I want to retrieve the members of a class >> with a baseclass. >> But the problem is, how to get the non derived >> members. >> >> class a: >> def who(self): >> print "who" >> def __init__(self): >> self._a = 3 >> >> class b(a): >> def who1(self): >> print "who1" >> def __init__(self): >> a.__init__(self) >> self._b = 4 >> >> y=b() >> >> dir (y) >> ['__doc__', '__init__', '__module__', '_a', '_b', 'who', 'who1'] >> >> >> I need a function which lists only the members of >> the "not derived" class (here class B). >> >> _b >> _who1 >> __init__ >> >> How can I achieve this? >> With the introspect module or so? > >I believe you can't: Both _a and _b end up in y.__dict__ and there's no >way to differentiate between the two depending on the time of their >creation. By the way, these are instance attributes, not class >attributes, so strictly _b is not a member of B, it's just an instance >of y. To see why this is the case, check the following valid (though >highly discouraged) example: > >class X: >def __init__(self, x): >if isinstance(x,str): >self._s = x >else: >self._n = x > >x1 = X("1") >x2 = X(1) > >dir(x1) >['__doc__', '__init__', '__module__', '_s'] > >dir(x2) >['__doc__', '__init__', '__module__', '_n'] > > >George Hello George, thank you for this information. This is a pity. The background: I want to create a code completition for an editor component. It should distinguish between inherited and non inherited members. Reason is, that on wxPython, most classes are derived from wxWindow. For example if I want Code completition for wx.Frame, I always get the 200 or so suggestions, whereby most times, I'm only interested in the possible completions of wx.Frame and maybe wx.TopLevelWindow. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Getting not derived members of a class
On Mon, 1 Aug 2005 10:24:53 -0500, Jeff Epler <[EMAIL PROTECTED]> wrote: >On 'y', Python has no way of recording where '_a' and '_b' were set, so >you can't tell whether it comes from class 'a' or 'b'. > >You can find the attributes that are defined on 'b' only, though, by >using 'b.__dict__.keys()', or 'y.__class__.__dict__.__keys__()'. This >gives >['__module__', 'who1', '__init__', '__doc__'] > >If you want to limit yourself to current versions of cpython (because the >bytecode used in cpython is only an implementation detail) and define a 'member >of class a' as one where a.__init__ has a statement like 'self.z = ...', you >can peer into the bytecodes. Something like this: >from dis import HAVE_ARGUMENT, opname >LOAD_FAST = chr(opname.index('LOAD_FAST')) >STORE_ATTR = chr(opname.index('STORE_ATTR')) >HAVE_ARGUMENT = chr(HAVE_ARGUMENT) > >def find(cls): >ns = cls.__dict__ >result = ns.keys() >init = ns.get('__init__', None) >if not init: return ns >f = ns['__init__'].func_code.co_code >n = ns['__init__'].func_code.co_names >i = 0 >while i < len(f) - 6: >if (f[i] == LOAD_FAST and f[i+1] == f[i+2] == '\0' >and f[i+3] == STORE_ATTR): >j = ord(f[i+4]) + 256 * ord(f[i+5]) >result.append(n[j]) >i += 6 >elif f[i] > HAVE_ARGUMENT: >i += 3 >else: >i += 1 >return result > >>>> import franz >>>> franz.find(y.__class__) >['__module__', 'who1', '__init__', '__doc__', '_b'] > >Jeff Hello Jeff, thank you for this desciption. Well, a little complicated, I must read/try this later, but it looks promising to get the "last derived class" members ;) Is there any possibility to simply get out the classes and baseclasses of a class? somfunc (y) => class A, B (where B is last). Ok you can prepare a class, but I need to use the existing wxPython classes. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Getting not derived members of a class
On Mon, 01 Aug 2005 18:02:20 +0200, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: > >> The background: >> I want to create a code completition for an editor component. >> It should distinguish between inherited and non inherited members. >> Reason is, that on wxPython, most classes are derived from wxWindow. >> For example if I want Code completition for wx.Frame, >> I always get the 200 or so suggestions, >> whereby most times, I'm only interested in the possible completions of >> wx.Frame and maybe wx.TopLevelWindow. > >You can, of course, always search the base classes and subtract the two sets >(all members)-(members of baseclasses). For example: > >cls = wx.Frame > >set(dir(cls)) - reduce(set.union, [set(dir(base)) for base in cls.__bases__]) > >Reinhold Hello Reinhold, yes, cool, thank you very much! The optimum would be getting also the other base classes, with the members, but I think, it is asked to much. 'wx.Frame' ... => CreateStatusBar, ... 'wx.TopLevelWindow' ... => GetIcon, ... 'wx.Window' ... => ... 'wx.EvtHandler' => ... -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: How to use DrPython plugins
On Sat, 06 Aug 2005 13:38:24 +0200, Laszlo Zsolt Nagy <[EMAIL PROTECTED]> wrote: > > Hi All! Hello Laszlo, > >I have DrPython installed. I see there are cool plugins but I cannot >user them. I'm glad, you like DrPython and the plugins. What Platform do you have? Python, WxPython Version, latest DrPython 3.10.3 Version? You see this, when you call Help => About DrPython => System Info. >For example, I installed the "CodeCompletion" and "CodeMark" >plugins. I have enabled the "CodeCompletion" plugin by default. I >assigned the shortcut CTRL+SPACE to :CodeCompletion "Toggle Code >Completion". The code completition plugin is special, it is hardcoded to use the '.' char to launch the completion. >However, when I'm editing a file nothing happens. No matter >if I hit CTRL+SPACE or not. I have the same problem with CodeMark too. I could duplicate it. In codemark there there was a bug. updated Codemarks to 0.0.6. https://sourceforge.net/forum/forum.php?thread_id=1331861&forum_id=382892 Download: http://sourceforge.net/project/showfiles.php?group_id=83074 >I >setup the shortcuts but nothing happens. What am I doing wrong? Could you try again? Cheers, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: How to use DrPython plugins
On 6 Aug 2005 08:03:59 -0700, "RunLevelZero" <[EMAIL PROTECTED]> wrote: >Well I think you should post in this forum and you will get your answer >more quickly. > >http://sourceforge.net/forum/?group_id=83074 > Hi RunLevelZero, I have changed the Codemarks meanwhile. For testing, one could edit: plugins\default.idx and add manually the plugins: for example plugins\default.idx: CodeCompletion -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: new python debugger
On 10 Aug 2005 23:10:57 -0700, [EMAIL PROTECTED] wrote: Hello Nir, >Thanks for the compliments. > >I really believe Winpdb is not just another Python debugger, and that >it will be a real step forward in the quality of Python debuggers once >it matures. Yes, looks very promising ;) > >Also, don't worry about the .com url, it is a GPL debugger. > >Winpdb is still a BETA despite the version number which is 1.0.1 >so I will appreciate feedback on bugs, unexpected behavior, or >suggestions. >[...] Ok :) * Remember last opened files (in launch) * configurable shortcuts (I'm used to VC++ F10 step, F11 step into, Shift-F11 Step out). * As Neil suggested, Call Tips would be great (hovering over a variable). * A nice icon ;) * Ability to save Positions (Sash positions, if you drag the windows). * Possibility to close some windows (in my case, I would (most times) close "Console" and "Threads" or even better assign Shortcuts (example F4 => Toggle Threads window would be cool). * In VC++, there is also the possibility to Change a Variable with Shift-F9 (Quick Watch) and to change the program pointer with Ctrl-Shift 10. * bug: Open File (with browse it works); If I paste the filepath+name into the text field, it says "Error - File not found". I think: browse => "filename": the braces are important What do the letters in the margin mean? I saw: "L", "R" and "C". Cheers, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: new python debugger
On Thu, 11 Aug 2005 13:09:08 +0200, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >> >>Winpdb is still a BETA despite the version number which is 1.0.1 >>so I will appreciate feedback on bugs, unexpected behavior, or >>suggestions. List of current breakpoints (VC Alt-F9), where you can quickly switch on/off them with a list of checkboxes. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: new python debugger
On 11 Aug 2005 05:19:31 -0700, [EMAIL PROTECTED] wrote: >Thanks for the valuable input. I will look into it. You're welcome. > >In the mean time, until I implement your suggestions, here are some >workarounds for the problems you experienced. >[...] Really, you want to implement? cool ;) If you don't mind, I will continue in your sf "open discussion" forum. Cheers, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: DrPython debugger
On 5 Sep 2005 07:36:18 -0700, "Pandiani" <[EMAIL PROTECTED]> wrote: >Thanks for repy. >However, I found SimpleDebugger 0.5 from sourceforge.net as plugin for >drPython but I'm getting error message because DrPython cannot load >module drPythonChooser and it seems that the module is removed from >latest version of drPython. Or maybe I wasn't able to figure out how to >install it...:) Sorry for the misinformation. This SimpleDebugger is out of date for a longer time. Maybe you make a bug report about this? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Would you pls tell me a tool to step debug python program?
On 12 Sep 2005 00:12:29 -0700, "Johnny Lee" <[EMAIL PROTECTED]> wrote: >Hi, > I've met a problem to understand the code at hand. And I wonder >whether there is any useful tools to provide me a way of step debug? >Just like the F10 in VC... > >Thanks for your help. > What about the "new" winpdb debugger. It looks really nice. http://sourceforge.net/projects/winpdb/ http://www.digitalpeers.com/pythondebugger/ create a shortcut like: C:\Python24\python.exe C:\Python24\Lib\site-packages\winpdb.py -t the -t switch is important, otherwise it starts in an encrypted mode". I have patched winpdb.py (about Line420): AC_CHAR = "\t" AC_EXIT = "Alt-X" AC_BREAK = "F4" AC_GO = "F5" AC_NEXT = "F10" AC_STEP = "F11" AC_GOTO = "Ctrl+F10" AC_TOOGLE = "F9" AC_RETURN = "Shift+F11" to accomodate the shortcuts to VC Debugger. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Checked tree in wxpython (windows)
On 13 Sep 2005 01:16:52 -0700, "geire" <[EMAIL PROTECTED]> wrote: >I'm trying to make a checked tree based on TreeCtrl. >[...] Not directly an answer, but: there exists already such a CheckTreeCtrl. I have uploaded it at: http://mitglied.lycos.de/drpython/CheckTreeCtrl.tar HTH >I've subclassed >the control such that checkmarks appear in the left hand side of the >treeitems. So far so good. The challenge appears when I programmaly >want to check the tree items since I don't know the hitem id which I >should send an update to (using SendMessage). I only get access to a >proxy of wxTreeItemId and not the hItem id itself. Any ideas of how I >can get this id? > > >Thanks in advance. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: some advice about Python GUI apps
On 14 Sep 2005 04:26:11 -0700, [EMAIL PROTECTED] wrote: >Hi, > >I am writing a program in Python and I am using wx.Python for the GUI. >I have no prior GUI and Python experience so that's why I turn to the >specialists for aid. Hello Kris, I think the specialists are in the wxPython-mailing list ;) http://www.wxpython.org/maillist.php >Basically, my app is a wx.tree object with items. You can click on each >item and set some properties of the item (Pydata). To set the >properties of an item you click on the item and then a 'Set item >properties' window pops up. You mean a wx.TreeCtrl? I don't understand exactly what you mean with "properties". Do you have a sample program? Sorry for not helping much. >However, I am looking for a way that you can only open 1 property >window per item. If I click on an item the 'Set item properties' >windows open but when I return to the tree window and select the same >item, I can open an additional 'set properties' window. >This leads to >all kind of C++ errors because these properties windows seems to >interfere for some reason. I don't have enough OO/Python/GUI knowledge >yet to fully understand what actually happens. >Basically, what I want is that when you want to open an items property >window and the window is alread open that in stead of opening a new >window, the window the is already open pops to the foreground. Any >ideay how I can implement this. > >Another solution would be to start the properties windows in a >'synchronous' mode, meaning that if this window is open, that you can't >manipulate the tree window anymore (~like in Word when you open the >'open file' window, you can't edit your doc until you this window is >closed again). Is the properties window a wx.Dialog? If you show it with ShowModal(), then you must finish with it, before you can select another tree node. >I hope this makes some sense. > >Any help much appreciated. > >Kris > >Ps.: any refs to good OO/Python GUI books are also welcome (or URLs) There is a wxPython book in process, and it is publication is estimated around end of this year. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: idle
On Thu, 22 Sep 2005 14:31:22 +0200, TK <[EMAIL PROTECTED]> wrote: >Hi, > >is there no IDLE in Python2.4? > >o-o > >Thomas Sure, on Windows: C:\Python24\Lib\idlelib\idle.pyw You should have a shortcuts in your StartMenu und Python 2.4 -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
wanted: C++ parser written in Python
Hello NG, has anyone written such a thing in python? Where could I look for? (I need it for an editor written in wxPython to display function names, include, global variables, classes, ... in a sidepanel). kind regards, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: wanted: C++ parser written in Python
On Fri, 25 Feb 2005 15:10:06 +0800, "mep" <[EMAIL PROTECTED]> wrote: >Try ANTLR with python code generation: >http://www.antlr.org/ > >And C++ grammers: >http://www.antlr.org/grammar/cpp > >You can generate a c++ parser in python with the above. Thank you, but it is too big. Anyway: I'm looking for some (simple) "rules" to parse (regex) and try to implement myself, if nothing is available. It don't have to be perfect. Maybe I look for some code in for example Dev-Cpp from Bloodshed (there is also a c++ class browser). -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: wanted: C++ parser written in Python
On 25 Feb 2005 12:38:53 +0200, Ville Vainio <[EMAIL PROTECTED]> wrote: Hello Ville, >>>>>> "Franz" == Franz Steinhaeusler <[EMAIL PROTECTED]> writes: > >Franz> Thank you, but it is too big. > >Franz> Anyway: > >Franz> I'm looking for some (simple) "rules" to parse (regex) and >Franz> try to implement myself, if nothing is available. > >Check out > >http://pyparsing.sourceforge.net/ Thank you for this information! Also a little to complicated, I'm looking for a quick solution. > >Before you start implementing one yourself. Regexp solution would >probably be a bit flakier. And do share your results when you get >some; I'm in need of a c++ parser myself. I don't want to scan a whole project, only the currently open file. class definition method/function ignore comment lines show #includes would be enough at first. I will inform again :) -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: RegEx: find all occurances of a single character in a string
On Tue, 14 Dec 2004 14:05:38 +0100, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: sorry >r=re.compile('[^a]a([^a]') r=re.compile('[^a]a[^a]') I meant. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: RegEx: find all occurances of a single character in a string
On Tue, 14 Dec 2004 14:19:35 +0100, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: >> given a string: >> >> st="abcdatraataza" >>^ ^ ^ ^ (these should be found) >> I want to get the positions of all single 'a' characters. > >for m in re.finditer("a+", st): >if len(m.group()) == 1: >print m.start() > >or, perhaps: > >indexes = [m.start() for m in re.finditer("a+", st) if len(m.group()) == 1] > > > > Great! thank you for your quick and helpful reply! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
RegEx: find all occurances of a single character in a string
given a string: st="abcdatraataza" ^ ^ ^ ^ (these should be found) I want to get the positions of all single 'a' characters. (Without another 'a' neighbour) So I tried: r=re.compile('[^a]a([^a]') but this applies only for the a's, which has neighbours. So I need also '^a' and 'a$'. Am I doing something wrong? Is there a easier solution? How can I quickly get all these positions? Thank you in advance. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: RegEx: find all occurances of a single character in a string
On Tue, 14 Dec 2004 14:05:38 +0100, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >given a string: > >st="abcdatraataza" >^ ^ ^ ^ (these should be found) >I want to get the positions of all single 'a' characters. >(Without another 'a' neighbour) >[...] Thank you again, Pádraig and Steve, your solution looks still more compact. There are several regular expression, that this could almost justify an own newsgroup. Or is there another group, where these questions are more appropriate? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Tabnanny really useful?
Hi, I looked at tabnanny to check a python source file. But I didn't find anything, tabnanny is able to find, what couldn't be found by compile command. Or have I missed something? best regards, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Tabnanny really useful?
On Mon, 20 Dec 2004 13:00:39 -0600, "John Roth" <[EMAIL PROTECTED]> wrote: >Tabnanny is intended to check whether indentation >has mixed tabs and spaces. Files with mixed tabs >and spaces _can_ compile just fine if the editor >that produced them agrees with the compiler about >the number of spaces that a tab occupies. Thanks for your explanation. I tried an found: def a(): ->print ->.print where point is a space. tabnanny here complains and python compile it just fine. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Tabnanny really useful?
On Tue, 21 Dec 2004 10:24:40 +0100, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: > >> Thanks for your explanation. >> >> I tried an found: >> def a(): >> ->print >> ->.print >> >> where point is a space. >> >> tabnanny here complains and python compile it just fine. > >really? that's a syntax error (you cannot change indentation nillywilly >inside a block), and the Python I'm using surely flags this as an error: > >$ python -c "print repr(open('franz.py').read())" >'def a():\n\tprint\n\t print\n' > >$ python franz.py > File "franz.py", line 3 >print >^ >SyntaxError: invalid syntax > >while tabnanny gives it one thumb up: > >$ python -m tabnanny -v franz.py >'franz.py': Clean bill of health. > >what Python version are you using? > > > > Oh sorry, I meant def a(): ->print .->print C:\Python23\Lib>tabnanny.py -v c:\franz.py 'c:\\franz.py': *** Line 3: trouble in tab city! *** offending line: ' \tprint\n' indent not equal e.g. at tab size 1 C:\Python23\Lib>python -c "print repr(open('c:/franz.py').read())" 'def a():\n\tprint\n \tprint\n' C:\Python23\Lib>c:/franz.py C:\Python23\Lib> -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Tabnanny really useful?
On Tue, 21 Dec 2004 08:36:31 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: > >[...] >> >> Oh sorry, I meant >> def a(): >> ->print >> ..->print >> >> C:\Python23\Lib>tabnanny.py -v c:\franz.py >> 'c:\\franz.py': *** Line 3: trouble in tab city! *** >> offending line: ' \tprint\n' >> indent not equal e.g. at tab size 1 >> >> C:\Python23\Lib>python -c "print repr(open('c:/franz.py').read())" >> 'def a():\n\tprint\n \tprint\n' >> >> C:\Python23\Lib>c:/franz.py >> >> C:\Python23\Lib> > >Well, you've probably answered your own question, then. Do you think >tabnanny is a useful piece of code now? Not really soo useful, because most syntax and also indentation errors are actually detected by invoking python, i.e. the command compile. But as combination for this: yes why not. I looked for Stanis spe editor, which uses a combination of these two. The background is: I'm a member of the wxPython project Drpython (Python text editor and much more), and wanted also check the usefulness of a kind of syntax check, which should run, before saving a Python file. PythonCard Codeeditor also uses tabnanny, as far as i can remember. >[...] regards -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Tabnanny really useful?
On Tue, 21 Dec 2004 09:34:47 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: Hello Steve, >I've used drpython, and liked it. thank you, I'm sure, our project Admin will be pleased to hear this :) >I think it would be a good way for >people to start to use the language, yes, this project is intended to fulfill this purpose. >as it avoids the "just the command >line" syndrome without being as complex as IDLE or PythonWin. I think, it isn't too far away from these two anymore ;) Considering the expansion with scripts and plugins, and there are a several of them available. >In short, >just about right for a beginner. I use it exclusively for a few months for any Python source editing. > >regards > Steve regards, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: python cookbook
On Tue, 21 Dec 2004 14:54:23 +0100, emami <[EMAIL PROTECTED]> wrote: >L.S., > >I have heard that Python cookbook is free! Could somebody tell me where >I can find it? > >[...] You mean, the whole cookbook as chm archive? It was published first, but then removed again. For reasons: http://miaw.tcom.ou.edu/~dody/ regards -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Tabnanny really useful?
On Tue, 21 Dec 2004 09:06:12 -0600, "John Roth" <[EMAIL PROTECTED]> wrote: > >"Steve Holden" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] > >> Do you think tabnanny is a useful piece of code now? I used it a lot when >> I first started using Python, and still run it over code from unknown >> sources (no pun intended) from time to time. > >I think it's a lot less useful today than it was a few >years ago, but it's still useful if you're stuck with an >editor that doesn't give you a robust set of options, >or if you've got to check a lot of modules in a library. > >I think most python-aware editors have included >the needed functionality, or at least some reasonable >approximation. > >I know what I would like to see in an editor: > >First, it autodetects whether the module uses >tabs consistently, spaces consistently or a >mixture. If it uses tabs consistently, it then >uses the current default. > >If it uses spaces consistently, it should also >autodetect the indentation setting in use in >the module and offer to change it if it's >different from the current default indentation >setting. > >If it's inconsistent, it should make an attempt >to deduce the model the creating software >used; if it can it should change it to the >default setting without complaining. Otherwise >it should complain. Again, DrPython does this almost as you described ;) There is an option in the preferences: "Use File's Indentation" and the indent setttings are set to the one, what is found in the opened source file. In the status line, the mode "SPACES" or "TABS" or "MIXED" is displayed. There are also the functions: Edit=>Whitespace=>Check Indentation Edit=>Whitespace=>Set Indentation to spaces (replaces all tabs with the preset nr of spaces for tab Exception 1: (it could set then the tab mode to spaces) and respectively: Edit=>Whitespace=>Set Indentation to spaces Exception 2: If open a file, there could be a check, whether tabs and spaces indentations are mixed, try to correct if possible or complain (let the user decide). => Feature Request ;) regards, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Eric3 under WinXP
On Tue, 5 Apr 2005 09:17:05 +0100 (BST), "Phil Thompson" <[EMAIL PROTECTED]> wrote: >> Hello NG, >> >> (Win XP) >> >> I have successfully installed pyqt, but not >> qtext, which I need to run Eric3. >> The PyQT demo files run fine. >> >> I've downloaded QScintilla, compiled via MS-VC, >> but (I suppose I need the SIG), to translate or provide >> the Python interface with pyd Files. >> >> Eric complains, that qtext is not found. >> >> Has anyone success with getting this to work and how? >> >> Many thanks in advance for possible answers, > >You haven't said which version of PyQt you are using. I guess it's the >non-commercial version based on Qt v2 - QScintilla (and therefore eric) >requires Qt v3. > >Phil Hello John and Phil, thank you for your answers. I have: PyQt 3.13 Qt v2.3 Non-commercial Edition I compiled: qscintilla-1.62-gpl-1.5.1\ and the results seems ok qmake qscintilla.pro nmake for the qmake, I downloaded: Qt 3.3.4 Evaluation I installed also SIP. sip-4.2.1 What steps are missing? thank you again -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Change between Python 2.3 and 2.4 under WinXP
On Tue, 05 Apr 2005 01:53:25 +0200, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >Fredrik Lundh wrote: > >> I'm not aware of any other tool that solves that specific problem. > >notepad does a fine job at creating batch files, IMO. > >Of course, it is not all that clear what the OP actually wanted. >[...] Hi, here I am again, the OP :) I think, I considered the problem more complicated as it is in fact. Maybe a batch file (py23.bat: c:\python23\python.exe should be enough) thanks again! -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Eric3 under WinXP
On Tue, 5 Apr 2005 10:14:48 +0100 (BST), "Phil Thompson" <[EMAIL PROTECTED]> wrote: >> On Tue, 5 Apr 2005 09:17:05 +0100 (BST), "Phil Thompson" >> <[EMAIL PROTECTED]> wrote: >> >> What steps are missing? > >If you are using the evaluation version of Qt then you need the evaluation >version of PyQt. This already includes SIP and QScintilla. > >Phil Hello Phil, Ok, new begin. I installed PyQt 3.14.1 Evaluation now. If I want to start for example aclock.py, I get: ImportError: No module named qt Is there any dll missing? Or doesn't it fit with "Qt 3.3.4 Evaluation" Any hints? -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Eric3 under WinXP
On Tue, 5 Apr 2005 11:43:38 +0100 (BST), "Phil Thompson" <[EMAIL PROTECTED]> wrote: >>[...] >> Or doesn't it fit with "Qt 3.3.4 Evaluation" >> >> Any hints? > >What version of Python do you have installed? The binary is built against >v2.4. > Oh sorry, I think, there was a mix between Python2.3 and Python2.4 somewhere in the registry. (it took the .pyd files from Python23 directory). I don't understand exactly (replaced some Python23 with Python24 with regedit), and, cool, it is working (also with eric (before I had installed 3.5.1 (there was an error), and now with eric 3.6.2), all is fine. thank you very much >BTW, your email address is bouncing messages. > Hm, sorry, I don't understand, what you mean. >Phil best regards -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE like NetBeans/Delphi IDE
On Tue, 05 Apr 2005 14:07:14 +0200, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >I search for an IDE that working in Windows, and knows these functions: > >A.) Automatic name searching/showing/extending on classes with >keypressing (like Netbeans, or Delphi Ctrl+Space). >B.) Debugging: breakpoints, step on lines (code), watch variables. > >Or A and B both. > What about Boa Constructor for A.)? I personally don't like the debugger so much, IMHO Hap Debugger is better and is similar to Visual Studio Debugger. You can also try DrPython (the development debugger is apparantly in process). -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On Wed, 27 Apr 2005 21:16:29 +0800, "monkey" <[EMAIL PROTECTED]> wrote: >Read through python site for programming tool, really plenty of choices :-) >(For c++, I just can't breath with very very limited choices) > >Tried Spe, it come with wxGlade built-in very nice(is Spe still actively >develop?). Hello, I think, it is. But SciTE is also nice (you can start Python Programs with F5, IIRC, and you see the output of your program). >But seem that Boa Constructor and PyDev(the plug-in for Eclipse) >also worth looking. Actually which one are you guys using? and why? I think >it is also valuable for those who are new to python as me. > > But I personally recommend DrPython. (Not only, I'm a member of the project). It is very customizable (Keyboard Shortcuts, customizable right-mouse popup menu, Syntax Check, you can define your own scripts or macros and you can extend it with plugins, as there are several available). (Find/Replace in Files, Sessions, Code Completition, Document List, Position Marker, Autocomplete, Incremental Search, Abbreviations You can open several Python prompts in the editor and start your currently typed program and view the output. It is written in wxPython, open source and under development. I use it for all my Python typing and development. -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On Wed, 27 Apr 2005 10:17:13 -0400, Bill Mill <[EMAIL PROTECTED]> wrote: >On 4/27/05, monkey <[EMAIL PROTECTED]> wrote: >> Read through python site for programming tool, really plenty of choices :-) >> (For c++, I just can't breath with very very limited choices) >> >> Tried Spe, it come with wxGlade built-in very nice(is Spe still actively >> develop?). But seem that Boa Constructor and PyDev(the plug-in for Eclipse) >> also worth looking. Actually which one are you guys using? and why? I think >> it is also valuable for those who are new to python as me. >> > >Believe it or not, this has been discussed before :) But nevertheless interesting again and again :) -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On 27 Apr 2005 07:36:28 -0700, "Matt" <[EMAIL PROTECTED]> wrote: >The ActiveGrid IDE is a sample app with wxPython. It has a lot of good >features including a source code debugger that allows you to debug wx >apps and set breakpoints from the code editor. I am also biased >though--I work on that IDE and use it for all my coding. Its pretty far >along on Windows and getting better on Linux. We just got it working on >a Mac yesterday so that version won't be out for a bit. Little OT: I tried to run or debug the current open file. but it didn't work. As I found no forum, I ask here: Traceback (most recent call last): File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\lib\pydocview.py", line 930, in ProcessEvent return DocMDIParentFrameMixIn.ProcessEvent(self, event) File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\lib\pydocview.py", line 325, in ProcessEvent return wx.GetApp().ProcessEvent(event) File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\lib\pydocview.py", line 1636, in ProcessEvent if service.ProcessEvent(event): File "C:\Programme\wxPython2.6 Docs and Demos\samples\ide\activegrid\tool\Debu ggerService.py", line 1534, in ProcessEvent self.OnRunProject(event) File "C:\Programme\wxPython2.6 Docs and Demos\samples\ide\activegrid\tool\Debu ggerService.py", line 1633, in OnRunProject dlg = CommandPropertiesDialog(self.GetView().GetFrame(), 'Run', projectServi ce, None) File "C:\Programme\wxPython2.6 Docs and Demos\samples\ide\activegrid\tool\Debu ggerService.py", line 1933, in __init__ self._selectedProjectDocument = self._projectDocumentList[selectedIndex] IndexError: list index out of range Where to ask for help otherwise? -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On Thu, 28 Apr 2005 00:10:00 +0800, "monkey" <[EMAIL PROTECTED]> wrote: >Is it related to wxpython you mean? or program with GUI in tk (the default >installed with python) is faster? Would you mind to tell me more... I have the impression, that the startup time of tkinter is twice as fast as in wxPython. But after that, wxPython response times ar as fast as in tkinter. -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On 28 Apr 2005 09:48:25 -0700, "Matt" <[EMAIL PROTECTED]> wrote: >Sorry about that Frank. You have to create a project (New --> Project) >and add your file to it then Run-->Run. This is a bug that slipped past >because we do all of our development using projects and hadn't even >tried the obvious: open file and run. That fix has made its way to the >wx folks, but hasn't been released yet. Hello Matt, thanks for clarification ;) -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: HELP! on wxPython Error
On Mon, 2 Jan 2006 21:44:11 +0600, Suranga Sarukkali <[EMAIL PROTECTED]> wrote: >Hello, I'm Sam and I've been under som trouble with using wxPython >that when I try to execute code containing wxPython gui programs >provided with wxPython geting started sample progams it's giving a >error but when I type the code to the shell prompt it works fine. Is >it beacus I'm on windows or will I have to download again? or is it >else. Please answer my deeply troblesome question replying to me at >[EMAIL PROTECTED] Is the wxPython Demo working? What Getting Started Code are you referring to? Can you show us the code? Did you get any tracebacks? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Widget that displays a directory tree?
On Thu, 12 Jan 2006 11:55:46 -0500, "Edward C. Jones" <[EMAIL PROTECTED]> wrote: >Do any of the Python GUIs have a super-high-level widget that displays a >directory tree? Most file managers or editors have this type of window. Look at the wxPython Demo: There is the GenericDirCtrl and (especially for Windows) the GenericWinDirCtrl. Screenshots of both at: http://wiki.wxpython.org/index.cgi/GenericWinDirCtrl -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Applications written in TkInter
Hi, I wonder, if there is a site with a collection of written TkInter programs. I did not find any summary. for pyGtk there exist for example: http://www.pygtk.org/applications.html and for wxPython: http://wiki.wxpython.org/index.cgi/wxPythonPit_Apps -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
tkinter newsgroup or mailing list
Hello NG, I'm asking this, (although I know a mailing list on gmane gmane.comp.python.tkinter and there is so little traffic compared to the mailing list of wxPython also mirrored on gmane gmane.comp.python.wxpython. I cannot imagine, that there is no more interest in exchanging opinions, or is this really the case? Is tkinter so simple, that no more questions appear? Or is it simply so uninteresting? :) -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: [wxPython] wxFrame don't have Bind attribute ??
On 29 Oct 2006 22:31:09 -0800, "Jia Lu" <[EMAIL PROTECTED]> wrote: >Hi all > I am using wxPy 2.6.3.2-2, But when run an application with self.Bind >, I got an error that there is no Bind. > > How can I fix it. thanx Is it really an instance of wx.Frame? What do you get, if you make a "print self" statement? -- http://mail.python.org/mailman/listinfo/python-list
Re: Best Python Editor
On Wed, 31 May 2006 15:33:29 +0530, "Manoj Kumar P" <[EMAIL PROTECTED]> wrote: > >Hi, > >Can anyone tell me a good python editor/IDE? >It would be great if you can provide the download link also. > For a simple start: Scite is small, good, cross platform, free and open source and you can launch the program easy hitting F5 (run). Of course there are more powerful editors as vim, (x)emacs, jedit, ... but that depends on your intentions. -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] XPN 0.6.5 released
On Tue, 12 Sep 2006 20:15:58 GMT, Nemesis <[EMAIL PROTECTED]> wrote: >XPN (X Python Newsreader) is a multi-platform newsreader with Unicode >support. It is written with Python+GTK. It has features like >scoring/actions, X-Face and Face decoding, muting of quoted text, >newsrc import/export, find article and search in the body, spoiler >char/rot13, random taglines and configurable attribution lines. Hello Nemesis, that is a great program, thank you. I will try to use it and also attempt to customize it, so that it works like forte agent. Even better would it be to have it in wxPython Some little points: There is no progress bar or other info, if I subscribe one list. There is a little in the lower left corner, but if a lot of headers and bodies are received, the program seems to hang. I actually killed it, because I thought that hanging. It would be nice, if I click on the groups pane another group, the messages appear immediatly, without needing to double click the group. When composing messages, the tab size is 8. It would be nice to have the possibility to adjust this size. Cheers -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for the Perfect Editor
On 7 Sep 2006 13:18:22 -0700, "Omar" <[EMAIL PROTECTED]> wrote: >I'd love the perfect editor that would be: > >a) free DrPython and spe; both written in Python and wxPython using SciTe's control scintilla) and SciTE. DrPython on: http://sourceforge.net/projects/drpython/ (Projectpage) http://drpython.sourceforge.net/ (Homepage) > >b) enable me to drag and drop code snippets from a sort of browser into >the code DrPython Codemarks plugin. > >c) can run programs right from within DrPython => Program => Run (default F5) > >d) can edit > - PYTHON DrPython, spe, SciTE. > - Javascript no definite support. > - HTML DrPython (the others, I don't know) > - actionscript (since I'm also learning flash) Sepy on Sourceforge (also written in Python with wxPython) http://sourceforge.net/projects/sepy/ > >e) easy to learn > SciTE especially. >suggestions? -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for the Perfect Editor
On Thu, 14 Sep 2006 20:45:11 +0800, limodou <[EMAIL PROTECTED]> wrote: >> >These things UliPad also can do. And it also support html, javascript, >css, java, etc syntax highlight. UliPad also support Input Assistant, >even include custom calltips and auto-complete, and many features, you >can find in http://wiki.woodpecker.org.cn/moin/UliPad > >It also has a directory browser, wizard, plugins-system, code snippets >manage. Just using it, you'll find out what it's. Of course, I took only randomly three programs for easier comparing. -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] XPN 0.6.5 released
On Thu, 14 Sep 2006 19:36:01 GMT, Nemesis <[EMAIL PROTECTED]> wrote: >Mentre io pensavo ad una intro simpatica "Franz Steinhaeusler" >scriveva: > >>>XPN (X Python Newsreader) is a multi-platform newsreader with Unicode >[...] Hello Nemesis, >> Hello Nemesis, >> that is a great program, thank you. > >Thanks. you're welcome. > >> I will try to use it and also attempt to >> customize it, so that it works like forte agent. >> Even better would it be to have it in wxPython > >I disagree :-D He he :) > >> Some little points: >> >> There is no progress bar or other info, if I subscribe one list. >> There is a little in the lower left corner, but if a lot of headers >> and bodies are received, the program seems to hang. >> I actually killed it, because I thought that hanging. > >XPN is monothreaded, so when it is downloading the headers (it is a >monolotic job) the progress bar can't be updated. > >> It would be nice, if I click on the groups pane another group, >> the messages appear immediatly, without needing to double click the >> group. > >You can configure this behaviour, in the Configure Window go to >"Misc"->"Miscellaneous" and you'll find two check buttons >One Click Enter Group >One Click Enter Article Thanks, this is quite useful. > >> When composing messages, the tab size is 8. It would be nice to >> have the possibility to adjust this size. > >Hmm, it is a GTK default I don't know if I can change it, I'll check it. Not so important. A few other notes (or should I post into the feature requests on sourceforge?) little point: I find it superfluos on the header pane, to always have the term "Re:" before (it would probaly easier to read without this text). an option possibly (as in agent): if you click on the tree the "+" sign, it would be more convenient (for me) to open *all* subbranches, this means show all responses headers for this thread. if you change the groups, it would be nice to remember the position of the last readed thread in the header pane, which means changing forth and back to a certain group (as option for example). -- http://mail.python.org/mailman/listinfo/python-list
Re: XPN 0.6.5 released
Nemesis wrote: Hello Nemesis, this I post with XPN! ;) > Mentre io pensavo ad una intro simpatica "Franz Steinhäusler" scriveva: > >>>> Ah, great. I changed, this was not working immediatly. >>>> So I remembered, most often you have to restart the App, and so its is >>>> working. >>>Here is working fine. >> I am on windows, is there maybe a difference (?). > > I don't think so, I use XPN alo on Win2000 and WinXP and this shortcut > works fine on Windows too. > Ok. > [threading] >> Aha, I don't understand all the details anyway, in Forte the same >> thread was ordered in. > > The References header contains the Message-id of the article as they > appear in the thread, the last message-id in the references field is the > message-id of the parent article. > In-Reply-To is similar ... but it contains only the message-id of the > parent article, it is not a standard usenet header it is used by > mail-agents. > I use only References to build threads ... maybe Agent uses also > In-Reply-To. > Ok. >>>It's a focus issue, in the search dialog the focus is set on the entry. >>>The Esc key is not binded to any button by default. >> That would be convenient, pressing "Enter" to perform the awaited >> process and cancel to abandon the dialogue. > > But in the search dialog before you start the search you have to write > what you are searching ... so the software must be set on the entry. > Ack. > >> If you don't mind, I will make a thorough test :-) >> I don't want to bother more than necessary. >> I want to make it happen, that XPN will be my "default" Newsreader!!! >> Many thanks again for your answers and this wonderful piece of >> sofware! > > Thank you for your suggestions. > you'r welcome. Again a few points! ;) I managed it to get it run again. ;) My next try was a second newsserver. (It would be nice to have it in one installation, but priority is not so high) I have XPN in one directorry (for my default newsserver) and I installed XPN in a second directory for Gmane. -- A user defineable Title bar as in Agent would be good. (Then I could name the first instance "My News" or so, and the second one "Gmane". So easier navigating in Windows and also the tips in the task bar could be helpful for that. -- I find it useful in every program to have accelerator keys for buttons, radio boxes, ...; this means for example the underscor letter on the first letter in the label. Some are, some are not. -- The line spacing (vertically) in the header is a little higher than in wxPython programs or also in Forte agent. I suspect, this is a "feature" in PyGtk. narrower lines would display more headers, this means more headers would be visible at once. -- Is Saving attachments possible? I didn't see a menu point, nor are the threads are marked, having an attachment. -- An option to set X-No Archive default in the subscribed groups would be nice. -- Only an open thought: I (am/was) a member of the python editor DrPython written in wxPython. (Project is on the sourceforge page). I contributed some plugins for that, and I like the idea very much. The core of the program remains relativly small, and all the users can extend the program. The author do not have to fulfil all feature requests in the core, and can tell the users to extend the functionality with a plugin himself, or can assist him. And aside from writing plugins, I enjoyed. We have an repository of the plugins and there are far more than 10 available. Would such an idea make sense for XPN? XPN seems pretty stable and I enjoy this program more and more! Cheers, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: XPN 0.6.5 released
Franz Steinhaeusler wrote: > A user defineable Title bar as in Agent would be good. > (Then I could name the first instance "My News" or so, and the > second one "Gmane". So easier navigating in Windows and also > the tips in the task bar could be helpful for that. > Sorry, I repost this, because I accidentially inserted Signatur headers ("--") to split the points, so again: A user defineable Title bar as in Agent would be good. (Then I could name the first instance "My News" or so, and the second one "Gmane". So easier navigating in Windows and also the tips in the task bar could be helpful for that. I find it useful in every program to have accelerator keys for buttons, radio boxes, ...; this means for example the underscor letter on the first letter in the label. Some are, some are not. The line spacing (vertically) in the header is a little higher than in wxPython programs or also in Forte agent. I suspect, this is a "feature" in PyGtk. narrower lines would display more headers, this means more headers would be visible at once. Is Saving attachments possible? I didn't see a menu point, nor are the threads are marked, having an attachment. An option to set X-No Archive default in the subscribed groups would be nice. Only an open thought: I (am/was) a member of the python editor DrPython written in wxPython. (Project is on the sourceforge page). I contributed some plugins for that, and I like the idea very much. The core of the program remains relativly small, and all the users can extend the program. The author do not have to fulfil all feature requests in the core, and can tell the users to extend the functionality with a plugin himself, or can assist him. And aside from writing plugins, I enjoyed. We have an repository of the plugins and there are far more than 10 available. Would such an idea make sense for XPN? XPN seems pretty stable and I enjoy this program more and more! Cheers, -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Webbrowser written totally in Python
Hello NG, is there any (GUI) webbrowser written completly in Python? in pyGtk, pyQt, wxPython or TkInter? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: XPN 0.6.5 released
Nemesis wrote: > Mentre io pensavo ad una intro simpatica "Franz Steinhaeusler" > scriveva: > >> Hello Nemesis, >> >> >> this I post with XPN! ;) > Good :-) Yes, it is working fine. I also find the different coloring between quoting first and second level very clear-presented. ;) > >> My next try was a second newsserver. >> (It would be nice to have it in one installation, >> but priority is not so high) >> >> I have XPN in one directorry (for my default newsserver) >> and I installed XPN in a second directory for Gmane. > > It is not necessary, if you are using the source version (and since we > are on comp.lang.python I think so) you can use the command line option > -c > > python xpn.py -c your_dir > > and XPN will store its configs and data in this directory. > Great! I'll check. >> A user defineable Title bar as in Agent would be good. >> (Then I could name the first instance "My News" or so, and the >> second one "Gmane". So easier navigating in Windows and also >> the tips in the task bar could be helpful for that. > > you can tweak the code if you want ;-) > the file is xpn.py > > I see. >> The line spacing (vertically) in the header is a little higher than in >> wxPython programs or also in Forte agent. I suspect, this is a >> "feature" in PyGtk. narrower lines would display more headers, this >> means more headers would be visible at once. > > but maybe the view will be a little more messed ... anyway I'm not sure > I can change the size, maybe it depends on the font size. > You could try it, and decide if this will look better, but I don't think, it is doable (I saw this big line spacing also on atol, the gtk file manager on sourceforge written in gtk and C++). >> Is Saving attachments possible? I didn't see a menu point, nor are the >> threads >> are marked, having an attachment. > > no, XPN is definitively text-oriented. I'm not supporting attachments in > any way. > The matter is, for example in wxPython mailing list, mirrored on gmane, many attachments (source code samples) are delivered with attachments, and this would be cool. But all the same... (maybe I apply a patch some time in the next years...) :) >> An option to set X-No Archive default in the subscribed groups would be >> nice. > > I don't like X-No-Archive ... but anyway you can set you custome header > to be used in every post you send in the Config Window (Posting tab) > Ok. > Only an open thought: > > [plugins] >> Would such an idea make sense for XPN? > > yes but I should implement in some way the plugin support ... and I > don't know how to do it. > Not so important, and not urgent, only an idea, got from DrPython! :-) > >> XPN seems pretty stable and I enjoy this program more and more! > > thank you very much. > you're welcome and keep the good work! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Webbrowser written totally in Python
faulkner wrote: [source] Hi faulkner, thank you very much, I should have known! ;) It is a beginning after all. > # > there are also python bindings for gtkmozembed in gnome-python-extras > and here: > http://sourceforge.net/projects/pygtkmoz > I will take a look. -- http://mail.python.org/mailman/listinfo/python-list
PythonCAD question
Hello NG, I tried to run PythonCad on window and got follwoing traceback: Traceback (most recent call last): File "C:\temp\PythonCAD-DS1-R34\PythonCad.py", line 45, in ? import PythonCAD.Interface.Cocoa.ImageDocument File "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\ImageDocument.py", l ine 38, in ? import PythonCAD.Interface.Cocoa.Globals File "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\Globals.py", line 23 , in ? from Foundation import NSObject ImportError: No module named Foundation * Waht is the module "Foundation"? Where can I get it? Many thanks in advance! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: PythonCAD question
Peter Otten wrote: > Franz Steinhaeusler wrote: > >> Hello NG, >> >> I tried to run PythonCad on window and >> got follwoing traceback: >> >> Traceback (most recent call last): >> File "C:\temp\PythonCAD-DS1-R34\PythonCad.py", line 45, in ? >> import PythonCAD.Interface.Cocoa.ImageDocument >> File >> "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\ImageDocument.py", >> l >> ine 38, in ? >> import PythonCAD.Interface.Cocoa.Globals >> File "C:\temp\PythonCAD-DS1-R34\PythonCAD\Interface\Cocoa\Globals.py", >> line 23 >> , in ? >> from Foundation import NSObject >> ImportError: No module named Foundation >> >> * Waht is the module "Foundation"? >> >> Where can I get it? > > The .../Cocoa/... part in the paths suggests that PythonCAD assumes it is > running on a Mac. The missing module is rather a symptom than the cause of > the bug. > > Peter Hello Peter, On the homepage, http://www.pythoncad.org/ there is the text: "PythonCAD does run on Windows if you have the Windows ports of the required libraries and modules." -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: PythonCAD question
Peter Otten wrote: > Franz Steinhaeusler wrote: > >>> The .../Cocoa/... part in the paths suggests that PythonCAD assumes it is >>> running on a Mac. The missing module is rather a symptom than the cause >>> of the bug. > >> On the homepage, >> http://www.pythoncad.org/ >> there is the text: >> >> >> "PythonCAD does run on Windows if you have the Windows >> ports of the required libraries and modules." > > I don't doubt that. Looking into PythonCad.py, though, I find > > # main routine to start Cocoa-based PythonCad > > On Windows gtkpycad.py with > > # main routine to start GTK-based pycad > > looks more promising... > > Peter Thank you! It laid diretly in front of me. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
One program in different GUI Toolkits
Hello NG, I have a suggestion. For simplifying learning or switching between different GUI Toolkits, I could imagine to have one short clearly presented program in different GUI Toolkits. What about for example wxProject? http://wiki.wxpython.org/index.cgi/WxProject or some other suggestion to take as base program. (could contain menus, buttons, listboxes, dialogs, ...) I would be very interested how it would looks in: wxPython pyGtk pyQt TkInter Maybe in: Wax PythonCard PyFLTK ... Anybody is interested in implementing in one other GUI? We could put in on one Python wiki page for example. Many thanks in advance! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: One program in different GUI Toolkits
On Wed, 20 Sep 2006 08:27:30 +0200 (CEST), Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >Hello NG, > >I have a suggestion. > >For simplifying learning or switching between different GUI >Toolkits, I could imagine to have one short clearly presented >program in different GUI Toolkits. > >What about for example wxProject? > >http://wiki.wxpython.org/index.cgi/WxProject >or some other suggestion to take as base program. >(could contain menus, buttons, listboxes, dialogs, ...) > >I would be very interested how it would looks in: >wxPython >pyGtk >pyQt >TkInter > > >Maybe in: >Wax >PythonCard >PyFLTK >... > > >Anybody is interested in implementing in one other GUI? >We could put in on one Python wiki page for example. > >Many thanks in advance! Hello all, thank you for your replies. Hmm, ideally the program is short and a little useful, to that I agree. What about a small text editor using the scintilla control? It should be available for Pythoncard, wxPython, pygtk and pyQt (qtscintilla). With a small find dialog, open, save should be enough for the beginning. Other suggestions? -- http://mail.python.org/mailman/listinfo/python-list
Re: One program in different GUI Toolkits
On 27 Sep 2006 03:42:17 -0700, "Paul Boddie" <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: >> >> What about a small text editor using the scintilla control? >> It should be available for Pythoncard, wxPython, pygtk and pyQt >> (qtscintilla). >> With a small find dialog, open, save should be enough for the beginning. > >You might be interested in this page: > >http://wiki.python.org/moin/GuiProgrammingShootout > >Other people have suggested similar projects before, and you might be >able to get the ball rolling with the above suggestion. > >Paul Thank you for your information! -- http://mail.python.org/mailman/listinfo/python-list
OT - Looking for DrPython project help
Sorry for posting that, if you are not intersted, please ignore my post. I'm looking for person(s), which are interested in testing and possibly bug fixing for DrPython (hosted on Sourceforge) in general and with a certain focus for Linux. Sometimes, texts in dialogs are not entirely visible, some are without sizers, some crashes, plugin testing, ... If you have interest, please send a message to "Open Discussion": http://sourceforge.net/forum/forum.php?forum_id=283802 -- http://mail.python.org/mailman/listinfo/python-list
Re: Stani's Python Editor - questions
On Wed, 20 Dec 2006 15:45:01 +0100, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > Hello, > >I was trying to get answers for these. SPE homepage was down. Then I >found it on berlios >(http://developer.berlios.de/forum/forum.php?forum_id=12695) but no one >answered since 5 days. In fact nobody seems to write in anything to that >forum, I presume it is dead. I have no other choice than ask it here. I >apologize in advance, they may be silly questions. > >1. How can I navigate between opened files? Usually I open 10 or more >files at the same time. There is no way to quickly scroll the tabs and >select the one that I want. Tabs simply run out of my screen. Normally with ctrl-tab, ctrl-shift-tab, ctrl-f6 ctrl-shift-f6 (at least on windows) >2. I tried to use the "Browser" for navigation but it tells me "file is >already open" and it won't switch to the file. Annoying. What version do you have? on 0.8.0b on Windows, it jumps to the tab, if the file is already open. >[...] >I did not find any options/preferences to change the above things. Some >of the above might be new feature requests. I recently switched from >DrPython to SPE. SPE has more functions and it could be much much better >than DrPython, but it has big problems. Now the interesting part of your post begins for me. :) >For example, I like that SPE >saves the workspace automatically for me. In DrPython you have a plugin Sessions or SessionsLight for that. on the sf project page and the SessionsLight on: http://mitglied.lycos.de/drpython/ It saves all open file plus last editing position. >But it takes two minutes to >start up SPE, because I have to press the "OK" button on the ISO8859-1 >message for each file that is re-opened. >I very like the Browser window, >but I cannot use it for navigation. I like the new style save file >dialog, but I cannot use it because it is small. I like the code >completion. (dot) :-) > In DrPython, there is also a Code Completions plugin. It is not perfect, but still useful. I don't want to persuade to use this or that, but a closer look to the plugins will reveal the "hidden" features of DrPython, and plugins prevent DrPython to become to bloated. >Thanks, > > Laszlo -- http://mail.python.org/mailman/listinfo/python-list
Re: Stani's Python Editor - questions
On Thu, 21 Dec 2006 11:58:48 +0100, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > >>> 1. How can I navigate between opened files? Usually I open 10 or more >>> files at the same time. There is no way to quickly scroll the tabs and >>> select the one that I want. Tabs simply run out of my screen. >>> >> >> Normally with ctrl-tab, ctrl-shift-tab, ctrl-f6 ctrl-shift-f6 (at least >> on windows) >> >This does not work for me. I'm using these: > >OS: FreeBSD 6.1-RELEASE >Python: 2.4.3 >wxPython: 2.6.3.3 >SPE: 0.8.2a I also saw big problems with DrPython on wxPython: 2.6.3.3 and Ubuntu. > >Maybe I should use 0.8.0, but this would be difficult. My SPE was >installed using the "ports" system of my OS and I do not want to screw >it up. >>> 2. I tried to use the "Browser" for navigation but it tells me "file is >>> already open" and it won't switch to the file. Annoying. >>> >> >> What version do you have? on 0.8.0b on Windows, it jumps to the tab, >> if the file is already open. >> >Does not work for me! I'm getting messages like this: > >python:3255): Gtk-CRITICAL **: gtk_container_remove: assertion >`GTK_IS_TOOLBARcontainer) || widget->parent == GTK_WIDGETcontainer)' failed >python:3255): Gtk-CRITICAL **: gtk_container_remove: assertion >`GTK_IS_TOOLBARcontainer) || widget->parent == GTK_WIDGETcontainer)' failed Same similar error messages with DrPy. I would try to update to a higher wxPython version and/or reporting this to the wxPython user mailing list. > >I'm not sure what it means, but maybe the problem is not in SPE or >DrPython - it is with wxWidgets or GTK ? I suspect so. >> In DrPython you have a plugin Sessions or SessionsLight for that. >> >Okay, I know that DrPython has lots of plugins. I tried to install some >of them but the important ones did not work and I gave up. >>> But it takes two minutes to >>> start up SPE, because I have to press the "OK" button on the ISO8859-1 >>> message for each file that is re-opened. >>> >This must be a problem with wxHtmlWindow because I get the same message >when I start the wxPython demo. I'm upgrading wxPython right now, but >I'm not sure if it will help. SPE requires 2.6.1 and I already have a >newer version. (DrPython does not use wxHtmlWindow, this is why it does >not throw error messages.) I would comment out the wxPython versions check in spe for trying out. >> In DrPython, there is also a Code Completions plugin. >> It is not perfect, but still useful. >> >I tried to install it on FreeBSD but it did not work. I tried it on >Windows and turned out that code completion in DrPython it is much worse >than in SPE. Yes, I know! :( This is also a future task. >I'm missing code folding as well. DrPython is better for me >right now, because it works. :-) Code folding should work in DrPython. Preferences => File types and click folding check box, then the folding menu in View menu should work. It is on "our" todo list for Drpython. I plan on January or February to make a thorough test on Linux. BTW: For that I'm (we're) looking for tester and developer for all that things. >But none of them are practical nor easy >to use. SPE would be better if it worked. I wanted to buy the Wing IDE, >but their support team said it is not available for FreeBSD. They allow >me to compile it from sources but it is a mess. I would have to sign an >NDA and spend hours with compiling it, and it would still not be a >supported platform. It is just too much work. Komodo does not work on >FreeBSD at all. Also tried boaconstructor, but it was very unstable. If >I would like to have a good IDE for Python that knows a lot (code >completion, code folding, class browser, integrated debugger, call tips, >subversion integration etc.) then what choices I have? Did you try already Eric3 (with PyQt). Looks very nice and stable and has a lot of features. > >> I don't want to persuade to use this or that, >> but a closer look to the plugins will reveal >> the "hidden" features of DrPython, and plugins >> prevent DrPython to become to bloated. >> > >I'm sorry, I do not want to be offensive. No, no problem at all! :) >DrPython is good, but it is >not a complete IDE. I see, it isn't intended to be that also. >I would happily pay for a good IDE but I cannot find >one (not for FreeBSD). Maybe the problem is with my mind and I should >replace my OS immediately. :-) Good Luck for finding your preferred editor and IDE. > >Best, > > Laszlo Cheers, -- http://mail.python.org/mailman/listinfo/python-list
Re: Stani's Python Editor - questions
On Thu, 21 Dec 2006 07:09:54 -0500, "Peter Decker" <[EMAIL PROTECTED]> wrote: >On 12/21/06, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: > >> >Does not work for me! I'm getting messages like this: >> > >> >python:3255): Gtk-CRITICAL **: gtk_container_remove: assertion >> >`GTK_IS_TOOLBARcontainer) || widget->parent == GTK_WIDGETcontainer)' failed >> >python:3255): Gtk-CRITICAL **: gtk_container_remove: assertion >> >`GTK_IS_TOOLBARcontainer) || widget->parent == GTK_WIDGETcontainer)' failed >> >> Same similar error messages with DrPy. >> I would try to update to a higher wxPython version and/or reporting this >> to the wxPython user mailing list. > >FWIW, this has been reported for ages on the wxPython list. It's a bug >in the Gtk implementation that generates these scary-looking warnings, >but doesn't seem to cause any real problems. Sorry, I didn't find the right messages. Do you remember is is necessary to update wxpython or even other underlying software? -- http://mail.python.org/mailman/listinfo/python-list
OT- wxPython mailing list problems
Sorry about asking here, but has anyone experienced, that no message can be sent to the mailing list? Neither with Gmane, nor with Google mail. I always get this reply: from [EMAIL PROTECTED] """ Hi. This is the qmail-send program at sunsite.dk. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: ezmlm-reject: fatal: List address must be in To: or Cc: (#5.7.0) """ -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: editor for Python on Linux
On Sun, 19 Feb 2006 20:52:54 +0100, Mladen Adamovic <[EMAIL PROTECTED]> wrote: >Hi! > >I wonder which editor or IDE you can recommend me for writing Python >programs. I tried with jEdit but it isn't perfect. Maybe you try out DrPython. (Written in Python and wxPython, Autocompletion, Calltips, easily extensible with plugins and scripts, source browser, ...) -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
regular expresson for Unix and Dos Lineendings wanted
Hello, I need a regularexpression, which trims trailing whitespaces. While with unix line endings, it works; but not with Window (Dos) CRLF's: >>> import re >>> retrailingwhitespace = re.compile('(?<=\S)[ \t]+$', re.MULTILINE) 1) Windows >>> r="erewr\r\nafjdskl " >>> newtext, n = retrailingwhitespace.subn('', r) >>> n 1 >>> newtext 'erewr\r\nafjdskl' 2) Unix >>> r="erewr\nafjdskl " >>> newtext, n = retrailingwhitespace.subn('', r) >>> n 2 >>> newtext 'erewr\nafjdskl' >>> Who can help me (regular expression, which works for both cases). Thank you in advance! -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On Thu, 23 Feb 2006 13:54:50 +, Martin Franklin <[EMAIL PROTECTED]> wrote: >> >>>>> r="erewr\r\nafjdskl " >> 'erewr\r\nafjdskl' >> >> 2) Unix >>>>> r="erewr\nafjdskl " >> 'erewr\nafjdskl' > >why not use string methods strip, rstrip and lstrip > because this removes only the last spaces, >>> r 'erewr\r\nafjdskl ' >>> r.rstrip() 'erewr\r\nafjdskl' I want: 'erewr\r\nafjdskl' or for unix line endings 'erewr\nafjdskl' -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On 23 Feb 2006 06:44:36 -0800, "gene tani" <[EMAIL PROTECTED]> wrote: > >gene tani wrote: >> Franz Steinhaeusler wrote: >> > >> > Who can help me (regular expression, which works for both cases). >> >> universal newlines: >> http://www.python.org/doc/2.3.3/whatsnew/node7.html >> http://mail.python.org/pipermail/python-list/2006-February/324410.html > >if multiple end-of line markers are present (\r, \r\n and or \n), use >the file's newlines attribute to see what they are. I think the thread >linked above touched on that. Otherwise newlines (or os.linesep) >should tell you what end of line is in that file. > >http://docs.python.org/lib/bltin-file-objects.html Thank you for your info. I need it for a file, whose line endings I don't know. I wrote for DrPython this script: (using styled text control and wxPython) and this works, but I'm looking for a shorter way: === #drscript #RemoveTrailingWhitespaces import re import string eol = DrDocument.GetEndOfLineCharacter() regex = re.compile('\s+' + eol, re.MULTILINE) relewin = re.compile('\r\n', re.M) releunix = re.compile('[^\r]\n', re.M) relemac = re.compile('\r[^\n]', re.M) text = DrDocument.GetText() #check line endings win = unix = mac = 0 if relewin.search(text): win = 1 if releunix.search(text): unix = 1 if relemac.search(text): mac = 1 mixed = win + unix + mac #correct the lineendings before if mixed > 1: wx.MessageDialog(DrFrame, "Line endings mixed", "Remove trailing Whitespace", wx.ICON_EXCLAMATION).ShowModal() #ok to remove else: lines = text.split(eol) new_lines = [] nr_lines = 0 nr_clines = 0 first_cline = -1 for line in lines: nr_lines += 1 result = regex.search(line + eol) if result != None: end = result.start() nr_clines += 1 if first_cline == -1: first_cline = nr_lines new_lines.append (line [:end]) else: new_lines.append(line) #file has trailing whitespaces if nr_clines > 0: d = wx.MessageDialog(DrFrame, "%d of %d lines have trailing whitespaces (First:%d)\nCorrect?" % (nr_clines, nr_lines, first_cline), \ "Remove trailing Whitespace", wx.OK | wx.CANCEL | wx.ICON_QUESTION) answer = d.ShowModal() d.Destroy() if (answer == wx.ID_OK): newtext = string.join(new_lines, eol) #save current line curline = DrDocument.GetCurrentLine() DrDocument.SetText(newtext) #jump to saved current line DrDocument.GotoLine(curline) #no need to change the file else: wx.MessageDialog(DrFrame, "File ok!", "Remove trailing Whitespace", wx.ICON_EXCLAMATION).ShowModal() === -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On Thu, 23 Feb 2006 15:59:54 +0100, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >I need it for a file, whose line endings I don't know. > >I wrote for DrPython this script: >(using styled text control and wxPython) and this works, >but I'm looking for a shorter way: ah, sorry, I try to make this more clear again: (DrDocument is instance of a styled text control) import re import string def GetEndOfLineCharacter(): emode = DrDocument.GetEOLMode() if emode == wx.stc.STC_EOL_CR: return '\r' elif emode == wx.stc.STC_EOL_CRLF: return '\r\n' return '\n' text = DrDocument.GetText() eol = GetEndOfLineCharacter() regex = re.compile('\s+' + eol, re.MULTILINE) lines = text.split(eol) new_lines = [] for line in lines: result = regex.search(line + eol) if result != None: end = result.start() new_lines.append (line [:end]) else: new_lines.append(line) newtext = string.join(new_lines, eol) DrDocument.SetText(newtext) -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On Thu, 23 Feb 2006 14:46:20 +0100, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >Hello, I need a regularexpression, which trims trailing whitespaces. > >While with unix line endings, it works; >but not with Window (Dos) CRLF's: Thank you all for the replies. But I still don't have a solution. Of course with more lines it is possible, but it would be fine to have a "oneliner". -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On Thu, 23 Feb 2006 17:41:47 +, Martin Franklin <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: >> On Thu, 23 Feb 2006 13:54:50 +, Martin Franklin >> <[EMAIL PROTECTED]> wrote: >> >>>>>>> r="erewr\r\nafjdskl " >>>> 'erewr\r\nafjdskl' >>>> >>>> 2) Unix >>>>>>> r="erewr\nafjdskl " >>>> 'erewr\nafjdskl' >>> why not use string methods strip, rstrip and lstrip >>> >> >> because this removes only the last spaces, >>>>> r >> 'erewr\r\nafjdskl ' >>>>> r.rstrip() >> 'erewr\r\nafjdskl' >> >> I want: >> 'erewr\r\nafjdskl' >> >> or for unix line endings >> 'erewr\nafjdskl' >> > > >how about one of these variations > >print 'erewr\r\nafjdskl '.replace(" ", "") >print 'erewr\r\nafjdskl '.strip(" \t") > > Version 1: >>> w='erewr\r\nafjdskl '.replace(" ", "") >>> w 'erewr\r\nafjdskl' >>> w='erewr\nafjdskl '.replace(" ", "") >>> w 'erewr\nafjdskl' >>> w='word1 word2 \nafjdskl '.replace(" ", "") >>> w 'word1word2\nafjdskl' >>> it replaces all spaces, not only the trailing whitespaces. version 2: >>> w = 'erewr\r\nafjdskl '.strip(" \t") >>> w 'erewr\r\nafjdskl' >>> w = 'erewr\nafjdskl '.strip(" \t") >>> w 'erewr\nafjdskl' >>> w = 'word1 word2\nafjdskl '.strip(" \t") >>> w 'word1 word2\nafjdskl' >>> I found a solution (not the most beautiful, but for my purpose sufficiently good.) Given: a file has no mixed lineendings, so it is either a dos or unix file (mac line endings not respected). swin="erewr \r\nafjdskl " sunix="erewr \nafjdskl " Dos Line endings (at least on '\r' included)? r is contents of a file: helpchar = '' if r.find('\r') != -1: helpchar = '\r' retrailingwhitespacelf = re.compile('(?<=\S)[ \t'+helpchar+']+$', re.MULTILINE) newtext, n = retrailingwhitespace.subn(helpchar, r) if n > 1: r = newtext -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On Fri, 24 Feb 2006 12:36:01 +0100, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >if n > 1: if n > 0: (of course) :-) -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: regular expresson for Unix and Dos Lineendings wanted
On 24 Feb 2006 14:12:05 + (GMT), Sion Arrowsmith <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >>On Thu, 23 Feb 2006 13:54:50 +, Martin Franklin >>>why not use string methods strip, rstrip and lstrip >>because this removes only the last spaces, >> [given r = 'erewr\r\nafjdskl '] >>I want: >>'erewr\r\nafjdskl' > >os.linesep.join(l.rstrip() for l in r.split(os.linesep)) Hello Sion, thank you, your solution, I like most!! (it is clean und one don't have to use re's). -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython: help(wx) causes segfaulting?
On Sun, 26 Feb 2006 10:35:13 -0600, Tim Chase <[EMAIL PROTECTED]> wrote: >Trying to get my feet wet with wxPython (moving from just >command-line apps), I tried the obvious (or, at least to me >was obvious): > >Start python, "import wx" and then do a "help(wx)" to see >what it can tell me. I tried it on Windows Xp, and I got also a traceback: >>> help (wx) Traceback (most recent call last): File "", line 1, in ? File "C:\Python24\lib\site.py", line 328, in __call__ return pydoc.help(*args, **kwds) File "C:\Python24\lib\pydoc.py", line 1640, in __call__ self.help(request) File "C:\Python24\lib\pydoc.py", line 1684, in help else: doc(request, 'Help on %s:') File "C:\Python24\lib\pydoc.py", line 1468, in doc pager(title % desc + '\n\n' + text.document(object, name)) File "C:\Python24\lib\pydoc.py", line 296, in document if inspect.ismodule(object): return self.docmodule(*args) File "C:\Python24\lib\pydoc.py", line 1070, in docmodule contents.append(self.document(value, key, name)) File "C:\Python24\lib\pydoc.py", line 297, in document if inspect.isclass(object): return self.docclass(*args) File "C:\Python24\lib\pydoc.py", line 1194, in docclass lambda t: t[1] == 'method') File "C:\Python24\lib\pydoc.py", line 1144, in spill name, mod, object)) File "C:\Python24\lib\pydoc.py", line 298, in document if inspect.isroutine(object): return self.docroutine(*args) File "C:\Python24\lib\pydoc.py", line 1255, in docroutine doc = getdoc(object) or '' File "C:\Python24\lib\pydoc.py", line 76, in getdoc result = inspect.getdoc(object) or inspect.getcomments(object) File "C:\Python24\lib\inspect.py", line 448, in getcomments lines, lnum = findsource(object) File "C:\Python24\lib\inspect.py", line 437, in findsource if pat.match(lines[lnum]): break IndexError: list index out of range -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython: help(wx) causes segfaulting?
On 27 Feb 2006 04:55:15 -0800, "André" <[EMAIL PROTECTED]> wrote: > >Franz Steinhaeusler wrote: >> On Sun, 26 Feb 2006 10:35:13 -0600, Tim Chase >> <[EMAIL PROTECTED]> wrote: >> >> >Trying to get my feet wet with wxPython (moving from just >> >command-line apps), I tried the obvious (or, at least to me >> >was obvious): >> > >> >Start python, "import wx" and then do a "help(wx)" to see >> >what it can tell me. >> >> I tried it on Windows Xp, and I got also a traceback: >> >> >>> help (wx) >> Traceback (most recent call last): >[snip] > >I don't seem to have any problem (except that it takes a while to load) > >C:\Documents and Settings\André>python >ActivePython 2.4.2 Build 248 (ActiveState Corp.) based on >Python 2.4.2 (#67, Oct 30 2005, 16:11:18) [MSC v.1310 32 bit (Intel)] >on win32 C:\Python24\Lib\site-packages\wx-2.621-msw-ansi>python ActivePython 2.4 Build 244 (ActiveState Corp.) based on Python 2.4 (#60, Feb 9 2005, 19:03:27) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. maybe you have 2.4.2 and I 2.4. -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On 2 May 2005 06:08:02 -0700, "dcrespo" <[EMAIL PROTECTED]> wrote: >> But I personally recommend DrPython. (Not only, I'm a member of the >> project). > >I saw this message and downloaded DrPython. It's very good: Hello Daniel, thank you, >I like the >class/functions browser while I'm coding... but I can't find the >autocompletion feature you talk, and I think this feature is very >important. Where it is? > >Daniel For clarification: 1) There is the "normal" Autocomplete: It looks for already available Words in the text file, and suggest possible completition. Edit => Find and complete. 2) A plugin: Abbreviations: You can edit a list of words with abbreviation keys (like in SciTE). 3) I think, you meant "Code Completition": for example you type: os. and with the "." os.chmod, os.chdir, ... appear in a completition list box. You have to download it or install via plugin manager this plugin. Best overview, you get if you choose "Show ALL Project Files" in the Project:DrPython: Summary. Or you look at the homepage: http://drpython.sourceforge.net/ and select Plugins. HTH, -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On Mon, 02 May 2005 15:29:58 +0200, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: >3) I think, you meant "Code Completition": >for example you type: os. and with the "." os.chmod, os.chdir, ... >appear in a completition list box. BTW: If it doesn't seem to work: Make sure, to enable it in Options=>Enable Autocompletition. You can also select under Plugin Preferences "Code Completition Enabled by default". For other questions, you are welcome to ask in the tracker or Public Forums. -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On Mon, 02 May 2005 19:25:57 -0700, Bryan <[EMAIL PROTECTED]> wrote: >dcrespo wrote: >>>But I personally recommend DrPython. (Not only, I'm a member of the >>>project). >> >> >> I saw this message and downloaded DrPython. It's very good: I like the >> class/functions browser while I'm coding... but I can't find the >> autocompletion feature you talk, and I think this feature is very >> important. Where it is? >> >> Daniel >> > >i saw this message too and i've been using it for the last couple days, but i >don't see the class/functions browser you are talking about. where is it??? > >thanks, > >bryan Did you try: Menu View => "Toggle Source Browser"? -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
On 2 May 2005 08:21:48 -0700, "dcrespo" <[EMAIL PROTECTED]> wrote: >Hi. You were right: I meant "Code Completition". I did what you told me >to do. I get now auto completition of code. >For example: > >import wx >wx.(here appear a list with the possibilities) > >But (there's always a "but") with: > >button = wx.Button(...) > >when I write "button." there's a flick of the list of the possible >parameters, resulting in no showing it. Is there a way to correct it? > >Daniel Hi, I personally don't use it. Hm, because of drpython is "weak" typed, that is not so easy. It would require an "extra" parsing of the current document. Anyway this could be a feature request and I put it into sf tracker. Stani's Python Editor and Boa Constructor doesn't (seem) support this too. -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: wxpython on cygwin for drPython - ImportError: No module named _core_
On Tue, 3 May 2005 10:26:52 -0400, "Stephane Roy" <[EMAIL PROTECTED]> wrote: >Hi, > >Did someone installed and used successfully drPython on Cygwin? The >installation requires >wxpython. I tried many different alternatives (source, binary, etc) but so >far the best I get is the following. > >Traceback (most recent call last): > File "drpython.py", line 45, in ? >import wx, wx.stc > File "/lib/python2.4/Lib/site-packages/wx-2.6-msw-unicode/wx/__init__.py", >line 42, in ? >from wx._core import * > File "/lib/python2.4/Lib/site-packages/wx-2.6-msw-unicode/wx/_core.py", >line 4, in ? >import _core_ >ImportError: No module named _core_ > >Thanks in advance >Stéphane > >Don't take life too seriously, you won't get out of it alive! > Hm, I suspect, the demo is also not working(?) Apparantly a problem of installing wxPython. I saw once one posting in the wxpython-user mailing list. You could try to ask there. Sorry for not having a better answer. -- Franz Steinhäusler http://drpython.sourceforge.net/ http://mitglied.lycos.de/drpython/ -- http://mail.python.org/mailman/listinfo/python-list
Re: wxpython wxlistctrl with combo
On Mon, 13 Jun 2005 21:05:09 GMT, "Fabio Pliger" <[EMAIL PROTECTED]> wrote: >Hi all, >i'm working on a very large project using wx 2.5... On one frame i have a >wx.lib.mixins.listctrl widget, wich is a listctrl extended with the >possibility to edit the columns text entrys Anyone know if it's possible >(or if there's a widget...) to have also the possbility to have a comboBox >in the list (with the text edit entry)? The final result i need is a list >with 2 columns, one with the text entry editable, and the other with a >comboBox in it... Anyone know to do it? >TNX a lot... > >F.P. > Hm, I'm no expert, and it is probably better to ask in the wxpython-user mailing list. For what I saw: I think, you use TextEditMixin class. How about making a new class, (copying the TextEditMixin code), change the PreTextCtrl to a PreComboBox and maybe the navigation keys (TAB, ...)? -- Franz Steinhaeusler -- http://mail.python.org/mailman/listinfo/python-list
Re: Wanted: Email Client with GUI
Hello, thanks, Chandler looks good, maybe I will give it a try. Thanks, -- http://mail.python.org/mailman/listinfo/python-list
Wanted: Email Client with GUI
Hi, although I have googled, I didn't find a Python email client program fitting to my needs. What I want is a program (it doesn't have to be so sophisticated as thunderbird) written totally in python and using a gui toolkit like pyqt, pygtk, wxpyhton or tkinter. Who knows such a program? ;) best regards, -- http://mail.python.org/mailman/listinfo/python-list