Re: wxPythonUI changes

Eric Davis <[email protected]> Thu, 26 Jan 2006 14:30:33 -0500
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
That's funny, because I too am working on a wxpython ui.

It also is based on the wxpythonui, but I converted it to use XRC and
added some features.

I have attached the code, but be warned, it is sparsely documented, but
I use it to mud on my linux box all the time.  I was planning on doing a
cleanup when I got closer to what I wanted. I have testing it alot on
Linux, and some on Windows(XP).

I don't think the exe will be smaller with wxPython, the libraries are huge.

Eric

P.S.
Here is my bugs, todo, and feature list so far:
### TODO ###
# ASK: TextCtrl does not resize correctly when Sizer Slot is displayed
# ASK: Set Maximum lines in TextCtrl
# ASK: How to change line height

# TODO: Pretty up the right click menu for the buffers and textctrls
# TODO: Add a scratch pad?
# TODO: Speed up tagging a lot of data (for the scrollback buffer)
# TODO: Tab Completion

# TODO
#  Add an editor for every type of data
#  Add a configurable statusbar
#  Tab completion (much like on linux)
#  A config panel for both the wxui and various parts of lyntin (ie.
history number)
#  Automatically bind the last 5 commands to the F2 to F6 keys

# Item managers
#  Have a tree ctrl
#  in the editors dir, have a module for each thing to edit
#   I.E ActionEdit.py
#  __init__.py in this dir will read in all these
#  Everytime a toplevel tree item is clicked, then the manager
#    for that action will read in all items and populate the treectrl

# Tab Completion (much like linux)
#   - Tab through matching
#   - Maybe take a list of commands?

### FEATURES ###
#  Windowing that remembers its position between instances
#  Colored Scroll Buffer (for Linux)
#  Title Bar changing
#  Save buffers from right click menu
#  Key Bindings
#  Autotyper (you can pick session to send output to)
#  Focus stays on MainWindow when opening Named Windows
#  Icon in taskbar (that can flash)

### BUGS: ###
#  Windows :
#   -   Setting the OutPut or ScrollBuffer Control as TE_RICH2 causes
#       the letters to hide when something is printed to it, however,
#       not setting it means no colors
#  Linux   :
#   -   Cannot have White text on Black Background for Command Entry

#  Colored ScrollBuffer takes a long time if a large amount of text is
#       present
#  When the OutPut window gets large, the frame is not drawn correctly,
#       time to restart the app.
#  When opening the scrollbuffer, multiple pageUp events can be sent

### TEST: ###
#  Focus on Windows

will guaraldi wrote:
> 
> That's awesome!
> 
> I spent the last day or so twiddling with Lyntin and py2exe to see if I
> could roll a version of Lyntin that works off of a thumbdrive without
> requiring a Python installation.  Mostly I want to see what the issues
> involved are.
> 
> Anyhow, so I've got it working to some extent.  It's 10MB and it doesn't
> require Python to be installed or Tcl or Tk.  I was thinking if I
> switched to wxWindows, it might look better, work better, and end up
> smaller.
> 
> I'm not ready to share code yet.  I need to do some more investigation
> about how various things are working.
> 
> /will
> 
> 
> On Thu, 26 Jan 2006, Matthias Faust wrote:
>>
>> Hi,
>>
>> since I found lyntin, I'm using this cool client. But now I was trying
>> the wxpythonui under winxp and the ansi colors didn't work.
>>
>> Reading the wxpython manual I found out, that for getting colors under
>> win32 I should append the wx.TE_RICH flag to the textctrl style flags.
>> But than, scrolling didn't work as before (whole screen black, manual
>> scrolling was fixing that, until the next text was appended to the
>> textctrl).
>>
>> Unable to fix the scrolling bug, I started to write a textctrl
>> replacement (drawing all the text onto a panel). And it's almost
>> working yet, with only minimal changing the original wxpythonui code
>> :) But there are still some things (scrollbar issues, ...) I should
>> get fixed, before I'll post the code.
>>
>> Greetings,
>> Matthias.
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
newwxui.tar.gz (application/x-gunzip, 19.4 KB) - not displayed