Re: MS Word Outline -> reStructuredText script?
Jim wrote: > Hi, > > I'm using reStructuredText as a format for some group documentation, > and often my co-workers take notes during meetings in Word's outline > mode. Does anyone already have a python script that will convert from > Word (or the Open Office file format version of a word document) to > reStructured Text? Not a direct answer to your problem, but: Have a look at Leo! Leo is an outstanding outliner, written in Python. I do all formatting with reST and the convert it into LATEX and/or HTML. Everything's built in already, either in Python or in Leo. Perhaps you can convert your co-workers using Leo? > > If not I've got a fun project ahead of me. > > Thanks, > -Jim HTH Franz GEIGER -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython and window sizing
Ville Voipio wrote: > I have a small problem; I would like to have a reasonable > minimum size for a wx.Window. > > A simplified version of my code: > > > s = wx.SplitterWindow(self, -1) > > curves = wx.Notebook(s) > curve = wx.Window(curves, ID_BLANKCURVE, style=wx.SUNKEN_BORDER, > size=(300,200)) > curves.AddPage(curve, "Blank") > > textbox = wx.TextCtrl(s, ID_TEXTBOX, style=wx.TE_MULTILINE, > size=(-1,50)) > > s.SetMinimumPaneSize(50) > s.SplitHorizontally(curves, textbox) > s.SetSashGravity(0.8) > > > Here 'self' is the main window class, i.e. inherited from wx.Frame. > > What I would like to happen is that both the curve area and the > textbox would have an absolute minimum size when moving the > sash or resizing the window. > > How to get this behaviour? I have tried setting the minimum sizes > of the curve and the textbox by using the SetMinSize() method, > but this does not seem to affect anything. > > Already when the window is shown the upper pane (i.e. the notebook > curves) is smaller than (300,200) set in the code. > > TIA, > > - Ville > Couldn't you register for a handler? It would be called on changing size or on moving the sash's slider. And w/i that handler you could resize the window to its min dims. HTH Franz GEIGER -- http://mail.python.org/mailman/listinfo/python-list
Re: Any wing2.0 users here?
Alvin A. Delagon wrote: > emacs has been my long time companion for php, perl, and python. My boss > recommended to me Wing2.0, I find it hard to adjust though. What can you > say about this IDE? He say's if I think it could improve my productivity > he's willing to buy it for me. Suggestions for better python IDE's are > welcome! Thanks in advance! ^_^ I like WingIDE best on Windows. You can try Wing: They offer a 30 day eval version. HTH Franz GEIGER -- http://mail.python.org/mailman/listinfo/python-list
[OT] How can I change Debian's default Python version?
When I call the Python interpreter, the Python 2.4.1 version is called, because I installed it weeks ago from source by myself. That means the symlink /usr/bin/python points to 2.4. Fine. Now, when I install Python packages using the convenient Synaptic Package Manager, everything goes into the 2.3-directory-tree. How can I change that? Many thanks in advance and kind regards Franz GEIGER -- http://mail.python.org/mailman/listinfo/python-list
Re: [OT] How can I change Debian's default Python version?
Diez B. Roggisch wrote: >> >> Agreed, so I took another Linux box to make sure to not make "custom >> version" mistakes. >> >> Same here. Yes, there are 2.4-packages of all kind. But there's also a >> dependency package "python" telling the whole box that Python is 2.3.5. >> And when I want to install wxWidgets into Python 2.4, I am told that it >> depends on Python 2.3. > > sudo apt-get install python-wxgtk2.6 > > Which depends on python2.4 No, sorry, at least not on all my Sarge boxes. I'm told "needs python2.3" when I look at its properties from within Synaptic (Dependency Tab): Needs python-wxversion, needs python2.3, needs libc6 (>= 2.3.5-1) etc. etc. > > You do know aptitude, which displays dependend packages so that you can > browse from python2.4 through the dependand packages and find e.g. wx in > the correct version? No, I still have to look-up such things - I am still on the move from Windows to Linux. Thanks for the hint! > > And I repeat: Copying will lead to severe problems! You're talking about > binary extensions here, that depend on a specific libpython. Ok. > > Diez Many thanks and kind regards Franz -- http://mail.python.org/mailman/listinfo/python-list