Re: goto, cls, wait commands

2005-02-10 Thread Pekka Niiranen
import os if os.name == nt: os.system(cls) # Works in w2k else: os.system(clear)# Works in cygwin's Bash Ulf Göransson wrote: Bruno Desthuilliers wrote: Duncan Booth a écrit : BOOGIEMAN wrote: Secondly, how do I clear screen (cls) from text and other content

Re: Unicode Pythonwin / win32 / console?

2006-01-09 Thread Martin v. Löwis
Robert wrote: I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem . to get unicode strings on the screen - best results according to the platform/language settings (mainly XP Home, W2K

Re: how to do draw pattern with python?

2012-09-21 Thread Peter Otten
line coloring scape sequences for bash. \x1b[2J or ESC [2J should clear the screen and \x1b[1;1H or ESC [1;1H should move the cursor to the origin (I got that wrong in the previous post) There may be other problems -- I stopped reading http://en.wikipedia.org/wiki/ANSI_escape_code as soon as I

Re: pygame: transparency question

2012-05-30 Thread Ian Kelly
On Tue, May 29, 2012 at 9:33 AM, Scott Siegler scott.sieg...@gmail.com wrote: Hello, I have a surface that I load an image onto.  During a collision I would like to clear out the images of both surfaces that collided and show the score.   Is there a function call to clear a surface

[issue40711] Clearing the screen of IDLE interactive mode in Windows

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 and 3.6 only get security fixes. #6143 proposes to add special mechanism to clear Shell. It is a low priority for me as I very seldom want to, or if a editor is open, one can close the shell and start over when running the editor file. Clear an editor

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Phil Thompson
of characters that will clear the screen. It then writes those characters to stdout. The terminal, or (more usually these days) terminal emulator, then interprets those characters and takes the appropriate action. I'm not sure what the POSIX status of the clear command is, but I'd be surprised

[issue27771] Add a clear screen button or menu choice for IDLE

2016-08-15 Thread Raymond Hettinger
webpage or text file, see http://bugs.python.org/issue1442493 ). -- assignee: terry.reedy components: IDLE keywords: easy messages: 272826 nosy: rhettinger, terry.reedy priority: normal severity: normal stage: needs patch status: open title: Add a clear screen button or menu choice

Re: goto, cls, wait commands

2005-02-12 Thread Mike Meyer
Alan Kennedy [EMAIL PROTECTED] writes: Secondly, how do I clear screen (cls) from text and other content ? That depends on A: What type of display device you're using B: What type of interface is being rendered on that display (command line, GUI, IDE, etc) C: Perhaps what operating system

Re: Clearing the screen

2004-12-25 Thread Craig Ringer
for that, but you might just do: well i am not doing any console i/o. Just simple one. i am trying to clear the IDLE (one of python IDE distributed with the original distribution) screen which is pretty easy but having to do import cls cls() everytime is boring (2 lines of boredom!!) so what i

goto, cls, wait commands

2005-02-10 Thread BOOGIEMAN
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to QBasic's goto ? Secondly, how do I clear screen (cls) from text and other content ? And last, how do I

Re: goto, cls, wait commands

2005-02-10 Thread Bruno Desthuilliers
Duncan Booth a écrit : BOOGIEMAN wrote: (snip) Secondly, how do I clear screen (cls) from text and other content ? That depends on your computer, and how you are running your program. One way which *might* work is: import os os.system(cls) *might* work... !-) [EMAIL PROTECTED] modulix $ cls

Re: goto, cls, wait commands

2005-02-10 Thread Ulf Göransson
Bruno Desthuilliers wrote: Duncan Booth a écrit : BOOGIEMAN wrote: Secondly, how do I clear screen (cls) from text and other content ? That depends on your computer, and how you are running your program. One way which *might* work is: import os os.system(cls) *might* work... !-) [EMAIL

Re: Newbie question - clearing screen @ interactive prompt

2005-12-09 Thread Max Ischenko
Well, you can run any system command from within Python as well: import os os.system('clear') But I'm not sure this will help in this case. Are you trying to program a console app in Python? If so, you may want to look into curses module or other console lib that has Python bindings (like newt

Unicode Pythonwin / win32 / console?

2006-01-09 Thread Robert
Hello, I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem . to get unicode strings on the screen - best results according to the platform/language settings (mainly XP Home, W2K, ...). Also unicode

Re: graphic memory animation

2005-10-13 Thread Fredrik Lundh
Peres wrote: Python is great!... but the erasing of the graphic memory is slow (I used surf.fill from Pygame). define slow. Does anyone know how to erase the screen faster, in animated graphics? if you're doing animation on modern hardware, there's hardly any reason not to use double

Re: Algorithm for Labels like in Gmail

2006-06-11 Thread Rodolfo
a clear screen on a Python program? I mean something like the cls command in MS-DOS -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
in the file. 2. Those that provide a text-based interactive UI. Those typically not only clear the screen, but also control its whole layout and content, so there you don't only need ways to clear the screen but also to position the cursor or draw boxes etc. In that case you need a full curses library

[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen
David Bolen added the comment: Interesting - it's got a Visual Studio Just-In-Time Debugger dialog on the screen for an unhandled win32 exception in the compiler (cl.exe). That's a dialog my pop-up AutoIt script wasn't expecting, so I've added it to the other (RTL error) checks, and it'll

[issue24893] Idle occasionally gets mouse position wrong for selections

2015-08-19 Thread Ned Deily
Ned Deily added the comment: A wild guess: could it be dependent on the screen resolution, in particular if a Mac Retina display is in use? It also could depend on the version of Tk; from the screenshot it is clear that Guido was not using a python.org version of 3.4 so the out-of-date Apple

[issue47011] Cloned turtle pen is not cleared completely

2022-03-14 Thread Learn Coding
New submission from Learn Coding : When calling clear() method on a cloned turtle, some painted lines still remain on the screen. -- components: Library (Lib) files: testturtle.py messages: 415125 nosy: learncoding priority: normal severity: normal status: open title: Cloned turtle

Re: Extending Python Questions .....

2009-02-25 Thread Ben
SLAG project does not care in reality WHICH or what language, it  is simply handling menu and screen control. So do you want to embed python into your code? I'm still not clear what you are trying to achieve with python, though I have a better idea what SLAG is now! -- Nick Craig-Wood n

Re: Font size

2005-02-16 Thread Adam
Adam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] BOOGIEMAN [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: Please help me. How do you clear the screen and then display a number with an enlarged font size (about 300

Re: Font size

2005-02-16 Thread [EMAIL PROTECTED]
Adam wrote: Adam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] BOOGIEMAN [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: Please help me. How do you clear the screen and then display a number with an enlarged

library not initialized (pygame)

2021-05-02 Thread Quentin Bock
, 40)) screen.blit(instructions_2, (10, 60)) screen.blit(instructions_3, (10, 80)) screen.blit(clear, (10, 120)) if event.type == pygame.MOUSEBUTTONDOWN: if event.type == pygame.MOUSEBUTTONUP: screen.fil

Re: library not initialized (pygame)

2022-02-19 Thread Martin Di Paola
Could you share the traceback / error that you are seeing? On Sun, May 02, 2021 at 03:23:21PM -0400, Quentin Bock wrote: Code: #imports and variables for game import pygame from pygame import mixer running = True #initializes pygame pygame.init() #creates the pygame window screen

Unix Device File Emulation

2008-04-23 Thread blaine
updated data, and clear the file? Or is there some standard way of doing something like this that guarantees no overlap or data loss? example usage: echo 'line 0 0 10 10' /dev/screen On the actual embedded device this is handled by a kernel module. We can spit commands into it as fast as we can

Re: Python and (n)curses

2007-06-19 Thread Jorgen Grahn
On Tue, 19 Jun 2007 02:43:09 -0700, peter [EMAIL PROTECTED] wrote: I've said it before and I'll say it again. Why does Python have no platform neutral commands for simple screen manipulation? yabasic (a 'hobby' type language - http://www.yabasic.de/) has commands clear screen, inkey

Re: Exploring terminfo

2021-01-14 Thread Barry Scott
> On 14 Jan 2021, at 16:12, Alan Gauld via Python-list > wrote: > > During lockdown I've been digging deeper into the curses module > and lately into the ti family of functions that reside there. > > I've written a short program that is supposed to > - *clear th

Re: goto, cls, wait commands

2005-02-10 Thread Harlin
No goto needed. If this makes no sense (which it may not if all you've been exposed to is BASIC) it wouldn't be a bad idea to Google why you should never use a goto statement. To do a clear screen you'll need to use the method that your command shell uses. The shortcut to this is for Windows

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Floyd L. Davidson wrote: [EMAIL PROTECTED] wrote: If I may recommend an alternative, print \033[H\033[J the ansi sequence to clear the screen. Or so you would hope (however, that is *not* what you have listed!). Unfortunately, it is poor practice to hard code such sequences

Re: adding a directory to sys.path

2009-11-23 Thread Paul Miller
in that file, as well. For example, I hate not having any way to clear the screen when I'm typing at the Python prompt, so I added this code to my $PYTHONSTARTUP file: import os def clear(): os.system ('clear') Hope that all helps! -- http://mail.python.org/mailman/listinfo/python-list

Curses Subwin Resizing

2009-05-22 Thread Damian Johnson
selectively clear and redraw portions of the screen, however whenever the screen's height is reduced it permanently shrinks (and moves) displaced subwindows, so it can't recover when the screen's enlarged again. I've been looking for hours for any of the following that would fix the problem

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
independent python API to clear the terminal useful? There are two kinds of programs: 1. Those that process input to output. If one of those suddenly started by clearing my screen, I'd just dump it. Also, if output is redirected to a file or piped into another program, that is basically

Re: os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
Python pyt...@rgbaz.eu On 25 dec 2008, at 11:22, Dennis van Oosterhout wrote: Hi there! I was searching for a way to clear the 'DOS screen'/command screen etc. and found that os.system('cls') works for this. I was just wondering where I can find al the commands which can be used for os.system

Re: os.system('cls')

2008-12-25 Thread Dennis van Oosterhout
was searching for a way to clear the 'DOS screen'/command screen etc. and found that os.system('cls') works for this. I was just wondering where I can find al the commands which can be used for os.system(). I searched with google but I didn't find an answer. In the official python tutorial it says

Exploring terminfo

2021-01-14 Thread Alan Gauld via Python-list
During lockdown I've been digging deeper into the curses module and lately into the ti family of functions that reside there. I've written a short program that is supposed to - *clear the screen*, - read some input - display the result in a message *highlighted in bold*. - get input to end

Re: 1980's Home Computer-style Package.

2005-06-16 Thread Ralph Corderoy
Hi Skip, Some years ago I saw a Python package or program that gave a programming environment similar to the BASICs of 1980's home computers. You got a cursor-addressable screen, e.g. PRINT TAB(10, 20) Hello, and some simple pixel-setting functions, e.g. RECTANGLE FILL 0, 10, 20, 30

Re: yet another indentation proposal

2007-08-19 Thread Aaron
Paddy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Oh wow. it never crossed my mind... Can screen reaaderss be customized? Maybe their is a way to get the screen reader to say indent and dedent at thee appropriate places? Or maybe a filter to put those wordds into the source

Re: Please, I Have A Question before I get started

2006-03-13 Thread Diez B. Roggisch
will blank the screen and call up (for example) 6 pictures. A flashing border with travel from picture to picture. When the computer senses a mouse click it will clear the screen and present a second set of choices ... one level deeper than the first ... based on the chosen picture. Are you

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Tk produces bad screen distance in Tk_GetScreenMM (convert string to screen millimeters) and TkGetDoublePixels (convert string to number of pixels) when strtod fails on the string being passed. It also produces the error in SetPixelAny

Re: What does “grep” stand for?

2015-11-05 Thread Grant Edwards
for you. I knew people who (yonks ago) used 'ed' for >> regular file editing. And I remember using the VMS line-editor for >> regular file editing for a couple years before before a full-screen >> editor was available. > > Er, I think my quoting was unclear. I think it was mor

Re: Extending Python Questions .....

2009-02-24 Thread Nick Craig-Wood
handling menu and screen control. So do you want to embed python into your code? I'm still not clear what you are trying to achieve with python, though I have a better idea what SLAG is now! -- Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman

Re: Extending Python Questions .....

2009-02-24 Thread Mike Driscoll
SLAG project does not care in reality WHICH or what language, it  is simply handling menu and screen control. So do you want to embed python into your code? I'm still not clear what you are trying to achieve with python, though I have a better idea what SLAG is now! -- Nick Craig-Wood n

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Adam Skutt
if you'd prefer to keep living in your own delusional, illydic world, that's your decision. Qt has been pretty clear in painting the blame on who it belongs on, which is not the screen reader vendors. Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: recommend a graphics library for plotting by the pixel?

2011-10-05 Thread Westley Martínez
the new positions of the balls, and then redrawing everything that was left on the secondary screen because things were moving around and disappearing. I guess if I don't clear the screen at the beginning of the loop but just blit pixels onto it, when I call display.flip(), it will add the new

Re: recommend a graphics library for plotting by the pixel?

2011-10-07 Thread Adam Funk
clear the screen at the beginning of the loop but just blit pixels onto it, when I call display.flip(), it will add the new blittings to what was already there? If that's true, this will be much easier than I thought. Yep. Blitting is replacing the old colors with new colors. It doesn't

Re: goto, cls, wait commands

2005-02-10 Thread Grant Edwards
On 2005-02-10, BOOGIEMAN [EMAIL PROTECTED] wrote: First of all, what's Python command equivalent to QBasic's goto ? There isn't one. One defines functions and calls them. One uses for and while loops. One uses list comprehensions. One uses if/elif/else. Secondly, how do I clear screen

Re: os.system('cls')

2008-12-25 Thread D'Arcy J.M. Cain
the same version. BTW, os.system('clear') will clear the screen on many Unix systems. -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. -- http

Re: A simple way to print few line stuck to the same position

2011-06-03 Thread Hans Mulder
and dirty way would be to output VT100 sequences: they work on most, if not all modern terminals and emulators. For example, to move the cursor to the start of line 20 and clear the rest of the screen: sys.stdout.write(\033[20;0H\033[J) Or to clear the first six lines and put the cursor

[issue42771] Implement interactive hotkey, Ctrl+L to clear the console in Windows.

2020-12-28 Thread Eryk Sun
e API via ctypes. It supports Ctrl+L to clear the screen, including the scrollback. PSReadLine in PowerShell implements Ctrl+L without clearing the scrollback. That's a better example to follow if someone wants to take up the ambitious project of supporting readline for Windows in the standar

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-08-04 Thread Harry
Harry added the comment: The conflict comes from the fact that the documentation is written from the perspective of the procedure-oriented interface "All methods of TurtleScreen/Screen also exist as functions, i.e. as part of the procedure-oriented interface" Th

Re: The Importance of Terminology's Quality

2008-08-25 Thread norseman
non-portable?) On a Televideo screen this is the CLEAR SCREEN command. It was the standard clear screen for most terminals of the CP/M days. One could simply use the debugger, type in the hex and save as z.com. Then when one typed zcr the jumbled up screen cleared to system prompt in the upper

Pogo 0.8.1

2013-01-21 Thread Jendrik Seipp
A new Pogo version has been released. The tarball and an Ubuntu PPA are available at http://launchpad.net/pogo What is Pogo? - Pogo plays your music. Nothing else. It is both fast and easy-to-use. The clear interface uses the screen real-estate very efficiently. Other features

Re: goto, cls, wait commands

2005-02-10 Thread Duncan Booth
do I clear screen (cls) from text and other content ? That depends on your computer, and how you are running your program. One way which *might* work is: import os os.system(cls) And last, how do I put program to wait certain amount of seconds ? If I remeber correctly I used to type

Re: wxpython: where is the demo?

2006-06-08 Thread vasudevram
Vasudev Ram Independent software consultant On a clear day you can see the blue screen of death - Me :-). http://www.geocities.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

Re: image processing

2007-03-06 Thread Paul Rubin
edurand [EMAIL PROTECTED] writes: You can use it in Python, and we have provided tutorials and samples in Python, with for exemple conversion from/to PIL image format. Have a look at : http://filters.sourceforge.net/ Looks interesting, however the example screen shot is shrunk down so the text

Re: DOM related question and problem

2009-12-01 Thread Diez B. Roggisch
bla bla schrieb: Nice post on extracting data, simple and too the point :), I use python for simple html extracting data, but for larger projects like the web, files, or documents i tried a href=http:// www.extractingdata.comextract data/a which worked great, they build quick custom screen

Re: How to guard against bugs like this one?

2010-02-02 Thread Jonathan Gardner
On Feb 1, 6:34 pm, kj no.em...@please.post wrote: An innocuous little script, let's call it buggy.py, only 10 lines long, and whose output should have been, at most two lines, was quickly dumping tens of megabytes of non-printable characters to my screen (aka gobbledygook), and in the process

Re: Catching user switching and getting current active user from root on linux

2010-12-01 Thread Mark Wooding
Grant Edwards inva...@invalid.invalid writes: On 2010-11-30, mpnordland mpnordl...@gmail.com wrote: and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type of user switch my script needs to know. What do you do when

Re: how to do draw pattern with python?

2012-09-21 Thread Ian Kelly
like executing clear(1), and looks like those line coloring scape sequences for bash. They're called ANSI escape codes. :-) CSI 2J clears the screen. CSI 0;0H means move the cursor to row 0, column 0. However, I don't think that's valid ANSI, as the coordinates are 1-based. Probably it should

[issue18132] buttons in turtledemo disappear on small screens

2013-06-04 Thread Jan Kanis
New submission from Jan Kanis: If the window of the turtledemo is small enough, the start/stop/clear buttons disappear. This is specifically a problem when running on a netbook with a small screen, because the buttons are never shown. For a newcommer checking out the demo app this could

[issue46855] printing a string with strange characters loops forever

2022-02-25 Thread Eryk Sun
nome Terminal, after executing print('\x9f'), an APC command without a terminator, typing Ctrl+L still works to clear the screen and get back to a prompt. [1] https://en.wikipedia.org/wiki/C0_and_C1_control_codes#C1_controls -- nosy: +eryksun

Re: how to do draw pattern with python?

2012-09-22 Thread Hans Mulder
returning the cursor to (0,0), it's just like executing clear(1), and looks like those line coloring scape sequences for bash. They're called ANSI escape codes. :-) CSI 2J clears the screen. CSI 0;0H means move the cursor to row 0, column 0. However, I don't think that's valid ANSI

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
directory entry, so that either entry points to the same actual file. if i execute a command like 'clear' to clear the screen, where does the shell look to find the command 'clear'? It looks in locations specified by the PATH variable. By default that will be a minimal list defined by the login

Re: symbolic links, aliases, cls clear

2006-03-30 Thread Michael Paoli
is probably doing something like: system(cls) ... or whatever the python-specific way of writing something like that is. Most likely that was written, intended for some Microsoft DOS/Windows/XP or similar type of operating system - where CLS is a legitimate command (to clear the screen). On UNIX

[issue7061] Improve 24.5. turtle doc

2009-10-04 Thread Terry J. Reedy
lingl may have to answer. But he is not an option of the Assigned To: pulldown list. These are introduced by '??'. Quotes are from 3.1.1 docs. 24.5.1. Introduction version of python installed with Tk support.: cap 'python' to 'Python' 'which draws on “the” Screen - instance': delete '-' To use

Re: Turtle window not closing

2017-04-23 Thread Peter Otten
owturtle() # draw a square # replace with your code for i in range(4): myturtle.forward(100) myturtle.right(90) def clear_board(): myturtle.clear() myturtle.hideturtle() myturtle = turtle.Turtle() screen = turtle.Screen() draw_board() # clear board after 2 seconds s

[issue46666] IDLE Add indent guide

2022-02-11 Thread Terry J. Reedy
tes('-alpha', d)" where d in [0.0-1.0]. On Windows, 'top.wm_attributes('-transparentcolor', keycolor) makes that keycolor actually be transparent, like the green/blue screen used in television and movies. But any keycolor pixel in the toplevel exposes the screen beneath the toplevel, not the wi

[issue37745] 3.8b3 - windows install gui/ inconsistent options

2019-08-07 Thread Steve Dower
Steve Dower added the comment: > recommend we change "install launcher" to "install py launcher" to be > explicit. To be clear, you mean we change "Install launcher for all users" to "Install py launcher for all users"? You get the launche

Re: Pexpect idea - but can I handle curses?

2015-03-14 Thread Cameron Simpson
sophisticated than clear the screen and spit out rows. Will I be in over my head trying to tweak the output? Hmmm... maybe if I tell top TERM=dumb? You may need to tell it TERM=dumb, though it might also refuse to run. Like many full screen terminal apps, top is built on top of curses or ncurses

[issue40948] Better identify Windows installer as installer only, not runner

2020-06-11 Thread Terry J. Reedy
h the core complaint that "after downloading and trying to launch it keeps saying repair modify uninstall". (Actually, 'modify' comes first.) In response, Grant Edwards suggested adding run instructions to the initial screen and asked a "Is the file name not clear that it's an i

Re: repair modify uninstall

2020-06-11 Thread Terry Reedy
over and over again. Or since that can be annoying, a prominent "how to get started" link to click on. I dunno. Suggestions like this also get made regularly. I'm baffled why the Python installer doesn't display an initial screen that says something like. This is the Python

Re: Unix Device File Emulation

2008-04-23 Thread Helmut Jarausch
for changes, get any updated data, and clear the file? Or is there some standard way of doing something like this that guarantees no overlap or data loss? example usage: echo 'line 0 0 10 10' /dev/screen On the actual embedded device this is handled by a kernel module. We can spit commands into it as fast

Please, I Have A Question before I get started

2006-03-12 Thread Skipper
and call up (for example) 6 pictures. A flashing border with travel from picture to picture. When the computer senses a mouse click it will clear the screen and present a second set of choices ... one level deeper than the first ... based on the chosen picture. So again ... menu pictures of food

Screen Control in WinXP and Linux

2007-04-17 Thread peter
I've been wrestling on and off with this problem for over a year now, without success. Basically, I am looking for a simple set of screen and keyboard manipulation commands that will run identically under Linux and Windows. Nothing fancy - just clear the screen, print a string at an arbitrary xy

Re: Screen Control in WinXP and Linux

2007-04-18 Thread Tim Golden
peter wrote: I've been wrestling on and off with this problem for over a year now, without success. Basically, I am looking for a simple set of screen and keyboard manipulation commands that will run identically under Linux and Windows. Nothing fancy - just clear the screen, print a string

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Martin Gregorie
database you'll have a basic but easily portable character console handler that can at least clear the screen, move the cursor and, if the screen has the capability, change the colour of characters or make them bold/dim/blink etc. To give you an idea of how complex this is, I've re-implemented

[issue21625] help()'s more-mode is frustrating

2014-06-01 Thread eryksun
scrolls. Type a number N to scroll by N lines. Why does it clear the screen when you are done with it, removing all the help from the screen? The option -X (no-init) should stop `less` from clearing the screen. Why doesn't the prompt have a suggestion of how to get out of it? I guess no one

Tk and raw_input segfault

2005-05-24 Thread dale
Python newbie disclaimer on I am running an app with Tkinter screen in one thread and command-line input in another thread using raw_input(). First question - is this legal, should it run without issue? If not can you point me to a description of why. While updating objects on the screen I get

ANN: Urwid 0.9.7.2 - Console UI Library

2007-01-03 Thread Ian Ward
. A UTF-8 input handling bug was also fixed. New in this release: * Improved performance in UTF-8 mode when ASCII text is used. * Fixed a UTF-8 input bug. * Added a clear() function to the the display modules to force the screen to be repainted on the next

Pogo 0.6

2012-03-27 Thread Jendrik Seipp
I am proud to announce the release of Pogo, probably the simplest and fastest audio player for Linux. The tarball and an Ubuntu PPA are available at http://launchpad.net/pogo What is Pogo? Pogo plays your music. Nothing else. It is both fast and easy-to-use. The clear

Pogo 0.7

2012-04-28 Thread Jendrik Seipp
I am proud to announce a new release of Pogo, probably the simplest and fastest audio player for Linux. The tarball and an Ubuntu PPA are available at http://launchpad.net/pogo What is Pogo? Pogo plays your music. Nothing else. It is both fast and easy-to-use. The clear

Re: goto, cls, wait commands

2005-02-10 Thread Fouff
is that there is a mistake in the algorythm. If I remember, I think there is no goto instruction in python ! Secondly, how do I clear screen (cls) from text and other content ? I don't understand well what you exactly want to do. Can you explain more please. And last, how do I put program to wait certain

Re: goto, cls, wait commands

2005-02-11 Thread jean-michel
? Secondly, how do I clear screen (cls) from text and other content ? And last, how do I put program to wait certain amount of seconds ? If I remeber correctly I used to type Wait 10 and QBasic waits 10 seconds before proceeding to next command. Hi all, I saw a lot of comments saying GOTO

Re: Noobie Starting New Project

2005-09-22 Thread megafrenzy
8 N 1 and you can make it faster with a simple command. Although I did not make it clear, my real questions were with Python's graphics. There are so many GUI options and I wasn't sure which one would be the best. I'm thinking that pyCard would be the easiest for me to pickup, from what I heard

Re: Help with using findAll() in BeautifulSoup

2008-07-12 Thread Paul McGuire
On Jul 12, 12:55 am, Stefan Behnel [EMAIL PROTECTED] wrote: Alexnb wrote: I am making an app that screen scapes dictionary.com for definitions. Do they have a policy for doing that? From the Dictionary.com Terms of Use (http://dictionary.reference.com/ help/terms.html): 3.2 You

Re: Tried Ruby (or, what Python *really* needs or perldoc!)

2006-03-15 Thread Paul Boddie
. Why can't I do that in Python? What about pydoc? % pydoc os [Clear screen] Help on module os: NAME os - OS routines for Mac, DOS, NT, or Posix depending on what system we're on. FILE /usr/lib/python2.4/os.py MODULE DOCS http://www.python.org/doc/current/lib/module-os.html

Giving your C/C++ Application a Python Command Line...

2006-04-10 Thread Andrew McCall
of the application within the Python command line. For example, if I wanted to clear the display or display the about screen I would be able type the command in the Python coimmand line. To do this I think I need to embed Python in my application, and then expose my C/C++ functions to Python. I have

buttons keep jumping, frame loads on top of itself

2007-09-25 Thread Mridula Ramesh
hi. my actual code is a bit too long to post here, but this is how the code works : the application loads, the first screen appears. it is to view the records in a database, so you can scroll and view records by clicking on the standard navigation buttons ( |, , , | ). the problem is that since

frame refresh or redraw for records?

2007-09-26 Thread Mridula Ramesh
hi. my actual code is a bit too long to post here, but this is how the code works : the application loads, the first screen appears. it is to view the records in a database, so you can scroll and view records by clicking on the standard navigation buttons ( |, , , | ). the problem is that since

ANN: Urwid 0.9.7.2 - Console UI Library

2007-01-03 Thread Ian Ward
. A UTF-8 input handling bug was also fixed. New in this release: * Improved performance in UTF-8 mode when ASCII text is used. * Fixed a UTF-8 input bug. * Added a clear() function to the the display modules to force the screen to be repainted on the next

Re: image processing

2007-03-06 Thread edurand
interesting, however the example screen shot is shrunk down so the text on it can't be read. Also there are a bunch of sample filters with example images, but no explanation at all of what the filters do. Finally, it keeps mentioning things like dll which suggests this is a Windows library

Call-By-Object

2008-11-10 Thread Ethan Furman
Many thanks to Stephen, Marc, Terry, and everyone else. Even thanks to those whose stubborn refusal to think at the appropriate layer extended the thread clear off my mail reader's screen. This is one area where my understanding was weak, and in fact have had to change code because I didn't

Window crash/freeze after python test.py in \Gnuplot

2010-03-07 Thread gujax
Hi, My computer OS is Win ME, and I am running a Py2.5 version. Gnuplot is v4.2, Gnuplot_py is v1.8. However, whenever I give a command python test.py to test Gnuplot_py, I sometimes get message #Gnuplot.for enjoyment #press return to open a window .. clear terminal #test

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-26 Thread Peter Cacioppi
) then you use pictures. Seriously, it's not exactly clear what protocol GG users are expected follow to make posts hygenic. The standards I've used when creating this sort of content is to use screen shots with arrows and circles drawn in. If you're going to make an instruction page for some

Re: how to do draw pattern with python?

2012-09-21 Thread Chris Angelico
like executing clear(1), and looks like those line coloring scape sequences for bash. It's an ANSI escape sequence, or rather two of them. The first one clears the screen, the second returns you to 0,0. (Isn't that implicit in the 2J code? Maybe I'm misremembering.) But it depends on the terminal

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-02-21 Thread Ivan Herman
New submission from Ivan Herman ivan.her...@cwi.nl: I think that the screen dump below is fairly clear: 10:41 Ivan python Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more

Pexpect idea - but can I handle curses?

2015-03-13 Thread Skip Montanaro
to work with top's raw output, as it probably does something more sophisticated than clear the screen and spit out rows. Will I be in over my head trying to tweak the output? Hmmm... maybe if I tell top TERM=dumb? Anyway, before I get in over my head on the input side, I thought I would check

[issue25444] Py Launch Icon

2015-10-20 Thread Nils Lindemann
it is not clear at all what this is. it just looks like a smudge on the icon. When i first saw it i touched it to see if the smudge is on my screen. * the symbol indicates that one is running the launcher. But thats not true, he is running the process that was launched by the launcher. So if this symbol

[issue27025] More human readable generated widget names

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now it is clear that '`' is bad prefix. There are 32 non-alphanumerical non-control ASCII characters

<    1   2   3   4   5   >