FZT4K2mVAL FZT4K2mVAL | 20 Mar 2012 02:49
Picon

DreamPie - Learn Chinese (Mandarin) faster by using flashcards with pictures

DreamPie - http://www.ichineseflashcards.com will help you learn
Chinese (Mandarin) faster by using flashcards with pictures, thanks

Evgeny Pogorelov | 28 Feb 2012 17:44
Picon

Small Modification to work with gedit

Thanks for good new python development tool.
I very needed some feature in gedit, on F5 I want to have Dreampie
opened with
my python file executed. Unfortunately, Dreampie for now cannot do it.
I have to do some very small modification which I decided to share
here.
I am not very professional in Python (mostly use it for science
modeling), so the code is a little bit primitive,
but working well.

Additional feature:
> dreampie -r[--run] filename [jython|cython]
in initial code will executed
execfile('filename'), where filename will be processed automatically
into full file name.
If no such file is existed, then nothing will be happens (probably it
is better to make warning in future)

Modified file from last version "dreampie-1.1": .../dreampie-1.1/
dreampielib/gui/__init__.py
> diff __init__.py __init__.py(modified)
listing in down
141c141,142
<     def __init__(self, pyexec):
---
>     def __init__(self, pyexec,execute):
>         self.execute = execute
611c612
<         init_code = unicode(eval(self.config.get('init-code')))
---
(Continue reading)

Picon

Linsanity - Learn Chinese (Mandarin) faster by using flashcards with pictures

http://www.ichineseflashcards.com will help you learn Chinese
(Mandarin) faster by using flashcards with pictures, thanks

snapy666 | 24 Jan 2012 20:15
Picon
Favicon

File editing and thanks

Hi,

when will opening, editing and saving files be supported?

Would be nice if I could execute a py file and get all the variables
in this file as _variables.

and I also wanted to say thanks for this nice piece of software! :D

Best regards!

sgwong | 11 Dec 2011 17:28
Picon

Changes for user to use Up, Down, Enter key without ctrl

I am used to the Ipython way on how it works. So, I find it very hard
to type Ctrl + .... I just made some changes to the dreampie code so
that I can work like the existing Ipython way. (all the ctrl + still
work the same way but user can use Up, Down and Enter key like
Ipython)

There are some difference for Ipython due to Dreampie support for
multiline editor(which implement nicely).

For single line, user can press 'Up/Down' anywhere in the line to call
history up/down. When calling code from history, it will place cursor
at the end of line (which will be differrent for multi line code)
For execute code, user can press 'Enter' at any where of the line,
except the case when there is a space in front of the cursor which it
will enter a new line instead of execute code.

For multiline code, it will be a bit tricky...
For history searching, user can press 'Up/Down' to call history up/
down, but when calling the code from history, it will place cursor at
the start of the line, so that user can continue searching code from
history. When user has multiline code in the editor area, user have to
place the cursor at first line and start of the code in order to use
the 'Down' key. For 'Up' key, can be anywhere as long as the cursor is
in the first line.
when user call existing multi-line code from history, if user want to
go to next line, user must move the cursor to next character on first
line(or any where but not start of line for first line) in order to
use the 'Up/Down' key to move cursor to differrent line.
For execute code, user can press 'Enter' at last line and beginning of
the last line.
(Continue reading)

sgwong | 11 Dec 2011 17:01
Picon

Patches s to eliminate duplicate code when use history search up and down

First, thanks for developing Dreampie, a new python shell I would like
to have.

I used to be using Ipython but had switch to Dreampie after discover
dreampie. When I use Dreampie, there are some feature which I use in
Ipython but not in Dreampie. One of them is the history code searching
which dreampie will not skip the duplicated code. So, I had added a
request 'Faster history searching using Ctrl-up/Ctrl-down' in the
Dreampie feature request...but it haven't implemented for some time.

And thanks to be open source..I have some time in weekend and spend
some time to look at the code and try to implement it. Thankfully
Dreampie is a very well structure code, I can easily search the code I
am interesting without digging to all the code. Here is my changes for
the feature (I don't use bzr nor git, only svn, so dunno how to submit
code patches). The code I use is the dreampie 1.1.1, not the head of
the development/trunk

--- C:/Users/swong24/Development/dreampie/dreampie-1.1.1/dreampielib/
gui/history.py	Tue Feb 23 22:09:07 2010

+++ C:/Users/swong24/Development/dreampie/dreampie-1.1.1 - updategtk/
dreampielib/gui/history.py	Sun Dec 11 23:44:34 2011

 <at>  <at>  -149,9 +149,14  <at>  <at> 

                     and first_line.startswith(self.hist_prefix)
                     and (len(first_line) > 2 or
self.recall_1_char_commands)):

(Continue reading)

Chris | 1 Dec 2011 22:22
Picon
Gravatar

DreamPie works well with PyPy

I just tried DreamPie with the latest nightly build of PyPy (Linux
x86_64) and it works like a charm! Thanks!

Chris

Han Liu | 19 Oct 2011 14:42
Picon

assert Error in History class

Hi,

I am trying to add a feature that commands in history can be save as
plain text. I felt it is handy for editing code later.

in order to do so I passed history to HistPersist.(maybe this is very
bad please tell me if it is ). And I tried to call
history.iter_get_command(it) to get commands. but I got a assert
Error. It seems the textview inside of HistPersist does not have text
which are tagged as command. I used code below:

def save_history_raw(textview, f,history):
    """
    Save the history - the content of the textview - to a plain txt
file f.
    """
    tv = textview
    tb = tv.get_buffer()
    style = tv.get_style()

    it = tb.get_start_iter()

    it_end = tb.get_end_iter()
    #text = tb.get_text(it, it_end).decode('utf8')
    # place Assert Error happend
    texthistory = history.iter_get_command(it)
    f.write(texthistory.encode('utf8'))

So did I call iter_get_command with wrong iterator? I am new to python
any suggestion will be welcome!
(Continue reading)

ldso | 13 Jul 2011 17:43
Picon

dreampie on windows with cygwin python

Hey There!  I have installed dreampie on windows.  I get the "Couldn't
start subprocess Subprocess terminated with return code 1" message
box.

I tried using the "add interpreter" feature to link it to the cygwin
python.exe, but still get the error.  It almost seems like there is
some issue with getting the python instance finding everything it
needs.

I will poke at it some more but thought I would come here and ask for
help, I suspect this is common.

Thanks!

Bob Farrell | 20 Apr 2011 15:22
Picon
Gravatar

bpython website mention

Hi there,

I'm the author of bpython (http://www.bpython-interpreter.org/) and it
seems we get a fair number of people asking if bpython has feature X
or Y (and some of them even manage to be polite when we tell them
'no' !) - stuff like "does it run on Windows ?", "does it have block
history ?" etc., etc.. So seems like these people could do with
another piece of software that better suits them, so we've added a
section to the website with a list of alternative shells that people
may want to try - dreampie, IPython, and any others that we come
across. bpython isn't a dead project but hardly anybody does any work
on it these days, so I'd like to encourage other projects as much as I
can.

Good luck with the project - I haven't used it but from the
screenshots and description (and feedback from others) it looks like a
pretty powerful tool you've developed; I hope it's still going
well. :-)

All the best,

R. Grout | 24 Jan 2011 15:44
Picon

Allow changing of shortcut keys

Hi,

I am requesting a feature whereby I can configure the key shortcuts to
some other arbitrary key sequence (like ctrl+enter -> shift+enter).
About half of the key shortcuts conflict with other programs I have
running on my desktop (for example: my app launcher is linked to ctrl
+space, so every time I hit ctrl+space for a completion in dreampi, it
brings up my app launcher instead).

I would appreciate these changes very much.  Thank you for the
innovative python shell.

R. Grout


Gmane