Re: Average calculation Program *need help*

2016-05-12 Thread Michael Torrie
k like a programmer and to lay things out on the screen in a logical fashion, like a writer's outline. If you're still stuck, you will probably want to sit down with your teacher and have him or her go over this with you. This is important basic stuff you need to have clear in your mind to program com

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Anudeep Balla
: > > Eric V. Smith added the comment: > > Please do not include screen shots in bug reports. They've unfriendly to > people who use screen readers or other accessibility software. Instead, > please copy and paste (or retype, if needed) the text into the comment > section.

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Please do not include screen shots in bug reports. They've unfriendly to people who use screen readers or other accessibility software. Instead, please copy and paste (or retype, if needed) the text into the comment section. > '172.16.254

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Tal Einat
Tal Einat added the comment: > Lastly, for live demos in presentations, it is desirable to have a clear > screen, free of distracting artifacts. The sidebar is such an artifact -- > you would never see such a thing in a book or slide presentation. Also, for > live demos,

Re: yet another indentation proposal

2007-08-19 Thread O.R.Senthil Kumaran
Hi Aaron, Finally, just to be clear, I do not want to change the way 99.9% of Python code is written. I feel that the indentation model is a good one for 99.9% of users. What I do want to do is simply give the Python interpreter a tiny bit more flexibility to handle code from users

Re: Execute script on remote computer

2007-06-20 Thread Laurent Pointal
Evan Klitzke a écrit : On 6/19/07, Vikas Saini [EMAIL PROTECTED] wrote: I am trying to run the agent on one machine that will execute the script of a remote machine. It's not clear what OS you're using. But if you're running a Unix/Linux system and it's a relatively simple script that you

Re: screen output problem

2006-11-28 Thread Ritesh Raj Sarraf
brought this issue some time back too. Dennis Lee Bieber had a solution which looked better but not very much. His implementation had os.system(clear/cls) being called (to update the progress) which made the screen flicker if your network latency was low (especially in cases where the data

How do I get curses to work in Python 3.2 on win-64?

2011-10-15 Thread Jan Sundström
How do I get curses to work in Python 3.2 on win-64? I'm new to Python and when exploring Python in console I want to use some simple functions for console programming that don't emulate a typewriter terminal but rather a text screen terminal. I want to be able to clear the screen, position

[issue11571] Turtle window pops under the terminal on OSX

2011-03-16 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: If you have a large enough terminal window and run $ python -m turtle on OSX, you will see nothing because turtle screen pops under the terminal. Ned Deily suggested in msg130421 that this can be fixed by setting

python-text window vs. game/graphics window

2005-04-20 Thread D. Hartley
elif event.key == K_RIGHT and hero.direction == 1: hero.direction = 0 elif event.type == QUIT: running = 0 #leave if the user close the window if not paused: #Clear Everything enemyship_sprites.clear(screen

Mr. Conway in 50 lines of code

2017-12-31 Thread Wu Xi
33[H\033[J') # clear screen print('\n'.join(reversed(vtxt))) except: pass print("Simulated lifetime of the glider is over. May there live soon a new glider in the life habitat of your screen.") -- https://mail.python.org/mailman/listinfo/python-list

Re: Usenet falsehoods (was Re: Bitching about the documentation...)

2005-12-06 Thread Aahz
forums and boards and whatnot). I've been on the Net for more than fifteen years, and while this canard about real names gets trotted out from time to time, it's quite clear that many many people have been active on the Net *and* taken seriously using names that aren't what you'd call a real

Re: Python for a 10-14 years old?

2005-03-27 Thread Lee Harr
is that the turtle will only move one pixel def parser(parsestring, distance=1, angle=45): @@ -73,13 +78,14 @@ newstring = re.sub(X, , parsestring) newstring = re.sub(Y, , newstring) # Clear the screen -turtle.clear() +#turtle.clear() strlen = len(newstring) colorinc = 1.0

Re: Unix Device File Emulation

2008-04-23 Thread Dan Upton
(let's try this again, and actually send it to the list this time) On Wed, Apr 23, 2008 at 11:02 AM, blaine [EMAIL PROTECTED] wrote: Hey everyone, So I've got a quick query for advice. We have an embedded device in which we are displaying to an LCD device that sits at /dev/screen

Re: This could be an interesting error

2014-09-01 Thread Rustom Mody
time, effort, practice and diligence, especially time and practice, but if you do make the effort you'll never regret it. Eventually you'll find that you think (or read) a word, your fingers will wiggle a little bit and that word suddenly appears on screen. It's an _*EXTREMELY*_ useful

Re: os.path.getmtime on winXP

2005-11-08 Thread Bengt Richter
that integer so you see a 3600 sec difference? Or how are you seeing it? Could you paste an example of this difference from an example on your screen? I don't think I am understanding ;-) ... urk, it's late ;-/ (Btw: thanks for the interest.) Step by step example: [I do of cource not modify

Re: Unicode Pythonwin / win32 / console?

2006-01-10 Thread Robert
Martin v. Löwis schrieb: 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

Re: Override on terminal

2006-04-11 Thread Thomas Bartkus
suggested the curses module. I haven't played with this but it is probably just the ticket you are looking for. It no doubt encloses cgoto commands, blink, highlight, clear screen, color command yada yada for various terminal types inside nice python functions And I'll be surprised if it doesn't

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

2010-07-28 Thread Daniel Fetchinson
with a stream-like object, in order to filter out ANSI codes and convert them into Win32 terminal control calls. It currently only works with colors and brightness, but I would love to extend it to cover other ANSI codes such as 'clear screen'. It is doubtless riddled with errors

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

2013-10-26 Thread rurpy
On 10/26/2013 07:45 PM, rusi wrote: On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: Rusi said: Users of GG are requested to read and follow these instructions https://wiki.python.org/moin/GoogleGroupsPython Seriously, it's not exactly clear what protocol GG users

Re: IDE for python

2014-05-28 Thread Mark H Harris
which I had to get used to was that the interactive REPL provides no way to clear the screen. Its debugging capabilities (and undo levels) more than make up for that tiny small snag. You will come to appreciate the class path browser, recent files, c. The default highlight colors are well

Converting a bidimensional list in a bidimensional array

2008-01-08 Thread Santiago Romero
][:] = self.tilemap[j][:] #- def Draw( self, clear=1 ): screen = pygame.display.get_surface() if clear: self.Clear() for j in range(self.GetHeight()): for i in range(self.GetWidth()): self.DrawBlock( i, j

Stani's Python Editor - questions

2006-12-20 Thread Laszlo Nagy
. :-) Especially if you print messages like class __main__.A they will silently disappear from the output screen because they look like an invalid HTML tag. Frustrating. 5. There should be a an option to clear the output panel before running the program anyway. I see no way to clear it at all. 6. When

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

2006-03-14 Thread Terry Hancock
On Mon, 13 Mar 2006 02:19:39 GMT Skipper [EMAIL PROTECTED] wrote: Basically the program 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

Accessibility of Docs on Win32: Navigation, Names and PyDoc

2005-10-06 Thread Veli-Pekka T�til
Roman 13 point. Confronted with this info alone, it is not at all clear that this formatting has special significance. Some basic or very new screen readers like MIcrosoft Narrator, Gnome's Gnopernicus or Apple's VoiceOver do even worse. You might not get the formatting information at all, and many

Re: Extending Python Questions .....

2009-02-26 Thread Nick Craig-Wood
Ben bnsili...@gmail.com wrote: On Feb 24, 11:31?am, Nick Craig-Wood n...@craig-wood.com wrote: 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! Actually no, I want to EXTEND

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread Hendrik van Rooyen
relationship between the objects and what you see on the screen - so its a great way of getting into OO - as far as people like you and me will go with it, which is not very far, as we tend to think in machine instructions... And for what its worth - you can programme assembler-like python

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread UrsusMaximus
appreciate your comments on OO - it parallels a lot of what I feel as there is a lot of apparent BS that does not seem to do anything at first sight. However- for the GUI stuff, there is an easily understood relationship between the objects and what you see on the screen - so its a great way

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
, and I've had a couple of messages off-list about the accessibility, (probably so they wouldn't have to deal with you). We've even had one person ask for a list of screen readers, (and I note you only gave him the one -you- use for the OS -you- use). There's no selfishness, just your not knowing

Re: How do I get curses to work in Python 3.2 on win-64?

2011-10-15 Thread Christoph Gohlke
screen terminal. I want to be able to clear the screen, position the cursor and do unbuffered reading from the keyboard. Also setting different colors for the text and background. That could in Windows be accomplished by the handy WConio (http:// newcenturycomputers.net/projects/wconio.html

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

2014-06-01 Thread Ned Batchelder
help? Why doesn't ENTER get you out of it? Why doesn't the prompt have a suggestion of how to get out of it? Why does it clear the screen when you are done with it, removing all the help from the screen? It seems very geeky, and not that help-ful. I'm sure there's something we can do to make

Re: Repair??

2016-04-09 Thread Random832
n it? What action do you do? We can't guess that > either. > When I first downloaded it, it said "run", so I clicked that and it brought me to a screen that gave me an option to modify, repair, or uninstall.. I tried to repair it several times, but every time I ran it, the same screen

Re: Subprocess and /usr/bin/dialog

2008-03-22 Thread Grant Edwards
the widget has already exited, that string contains both the initial display _and_ the escape sequence that clears the screen and restores it. So, you just see a flash of blue. If you want to be able to see and interact with the widget, you need to leave stdout connected to the terminal while

Re: More More Fun w/ Pics MySQL

2009-10-16 Thread Carsten Haese
, with the correct dimensions, interestingly enough. It makes no difference at all if one adds the line print '/body/html' or not. I also believe (and hope) my initial post is pretty clear. Actually, your original post was not clear at all. Your original post said This will print all sorts of crap

Re: How to escape # hash character in regex match strings

2009-06-11 Thread Brian D
overlooked in my lurching Python schooling? As you're not being clear on what you wanted, I'm just guessing this is what you wanted: s = '123#abc456' re.match('\d+', re.sub('#\D+', '', s)).group() '123456' s = '123#this is a comment and is ignored456' re.match('\d+', re.sub

Re: How to escape # hash character in regex match strings

2009-06-11 Thread 504cr...@gmail.com
_sre.SRE_Match object at 0x00A6A800 print match.group() 123 The correct result should be: 123456 I've tried to escape the hash symbol in the match string without result. Any ideas? Is the answer something I overlooked in my lurching Python schooling? As you're not being clear

Re: Classes in a class: how to access variables from one in another

2010-10-18 Thread Nobody
clear what the intent of your code is. It's not even clear whether you understand the difference between a class and an object. class Curve: self.listOfPoints = () self isn't meaningful within a class definition. def draw(self): pass # for each point

Re: Matplotlib: getting a figure to show without plt.show()

2014-10-22 Thread Peter Otten
makes sense because I'm getting one layer deeper in callbacks with every plot (plt.show doesn't return). But if I call fig.canvas.draw every time, the window for the data plot never appears on my screen. If your backend uses tkinter, then the problem may be that plt.show() starts a new

Share Code Tips

2013-07-19 Thread Devyn Collier Johnson
. To emulate the Linux shell's date command, use this Python function def DATE(): print(time.strftime(%a %B %d %H:%M:%S %Z %Y)) Want an easy way to clear the terminal screen? Then try this: def clr(): os.system(['clear','cls'][os.name == 'nt']) Here are two Linux-only functions: def GETRAM(): print

Re: A Beginner's Doubt

2013-06-19 Thread Rick Johnson
can freely use, so I do not need to create all the aspects of the program froms scratch? It would be wise to give an abstract of the program. Yes, and wiser if you had given it at post.index[0]! Somethings happin' here (at c.l.py) What it is ain't exactly clear There's a post without context

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
dialog.destroy() File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/win_form.py, line 396, in destroy self.screen.switch_view(view_type=self.prev_view.view_type) File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/screen/screen.py, line 320

you shortened it, but you broke it too... ;-)

2017-12-31 Thread Wu Xi
e patterns in this lifespan loop and let them evolutionize! vtxt = [''.join('*' if cell=='L' else ' ' for cell in row) for row in vmap] print('\033[H\033[J') # clear screen print('\n'.join(reversed(vtxt))) except: pass print("Sim

Re: Exploring terminfo

2021-01-15 Thread Grant Edwards
;> I suspect that the problem is that putp is writing to the libc >> "stdout" FILE stream that's declaredin . That stream >> layer/object has buffering that is invisible to Python. > > That would indeed explain it. > >> Now the question: is there a way to tell the curs

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

2011-01-20 Thread Octavian Rasnita
? Of course that an application which respects more usability rules is easier to use, and this means that it should have the controls with a right tab order, with clear text labels and so on, but we can talk about usability only for an accessible GUI. JAWS screen reader has its own programming

Problems with PyQt

2005-01-28 Thread Michael McGarry
) wait_win.waitProgressBar.setProgress(0) wait_win.show() self.hide() self.viewSimButton.setDown(0) for loopIdx in range(self.simListBox.count()): if self.simListBox.isSelected(loopIdx) == 1: simIdx = loopIdx simID = self.simListBox.item(simIdx).text().ascii() # Clear list box sim_view_win.simOutputListBox.clear

Re: Problems with PyQt

2005-01-28 Thread Phil Thompson
() self.viewSimButton.setDown(0) for loopIdx in range(self.simListBox.count()): if self.simListBox.isSelected(loopIdx) == 1: simIdx = loopIdx simID = self.simListBox.item(simIdx).text().ascii() # Clear list box sim_view_win.simOutputListBox.clear() if os.path.exists(simID) == 1: os.chdir(simID

Re: goto, cls, wait commands

2005-02-10 Thread TZOTZIOY
-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 ? goto for python: http://entrian.com/goto/index.html Please ignore the line in bold red. Secondly, how do I clear screen (cls) from text

Re: goto, cls, wait commands

2005-02-10 Thread Alan Kennedy
to call them something different: continuations. But you're probably not interested in them. And python can't do them anyway. 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

Re: os.path.getmtime on winXP

2005-11-08 Thread Jorg Rødsjø
an example of this difference from an example on your screen? I don't think I am understanding ;-) ... urk, it's late ;-/ (Btw: thanks for the interest.) Step by step example: [I do of cource not modify the foo.py-file at any time during the testing.] With the system-date set to the 8th of november

Re: Usenet falsehoods (was Re: Bitching about the documentation...)

2005-12-05 Thread Grant Edwards
are you, anyway? Hmm, let's see Wasting Time on Usenet Since 1989 I've been on the Net for more than fifteen years, and while this canard about real names gets trotted out from time to time, it's quite clear that many many people have been active on the Net *and* taken seriously using

Re: Problem with curses and UTF-8

2006-02-08 Thread Thomas Dickey
it was not immediately not clear which copy of ncurses it's using (not the shared libraries since I installed those with tracing - a little odd for it to use the static library, but that's what the access time tells me). To check on that (since I wanted to read the ncurses trace), I ran strace and ltrace to look

Re: Subprocess and /usr/bin/dialog

2008-03-22 Thread harrelson
combinations and I can't get the dialog to show properly-- it does show properly directly in the shell. Any hints? import subprocess command = '/usr/bin/dialog --clear --title title --menu text 20 50 5 a this and that c 3 this and that b 2 this and that d 4 this and that' proc

Re: Installing pySerial

2008-09-18 Thread Tim Golden
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 pySerial 2.4 July 6th Problem : Errors Screen output import serial Traceback (most recent call last): File pyshell#0, line 1, in module import serial File C:\Python25\Lib

Re: Installing pySerial

2008-09-19 Thread eliben
installs use the default directories. Phyton  version    : Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 pySerial   2.4   July 6th Problem :  Errors Screen output import serial Traceback (most recent call last

UTF-8 Support of Curses in Python 2.5

2007-07-03 Thread shrek2099
keyloop(stdscr): # Clear the screen and display the menu of keys stdscr_y, stdscr_x = stdscr.getmaxyx() menu_y = (stdscr_y-3)-1 str = u'This is my first curses python program. Press \'q\' to exit. (¤£™)' stdscr.addstr(menu_y, 4, str.encode('utf-8')) xpos = stdscr_x / 2

Re: UTF-8 Support of Curses in Python 2.5

2007-07-21 Thread Andrey
libcursesw? Thanks a lot! Here is a test program: #!/usr/bin/env python # -*- coding: utf-8 -*- import curses def keyloop(stdscr): # Clear the screen and display the menu of keys stdscr_y, stdscr_x = stdscr.getmaxyx() menu_y = (stdscr_y-3)-1 str = u'This is my first

Re: Global variables within classes.

2007-11-09 Thread Donn Ingle
pushed onto it by them both. Now the point that isn't clear is the exact relationship between Stack and Canvas. You didn't give enough details for any answer, advice or hint to make sens. Sorry, didn't want to write an overly long post. a Canvas holds many Things (graphics) and it pushes each Thing

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

2006-04-10 Thread Roman Yakovenko
a command line where you can use Python commands to perfom the functions 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

Re: SimplePrograms challenge

2007-06-20 Thread Steve Howell
no longer an issue. 2) assert is not the simplest example of doctest. The style should be add_money([0.13, 0.02]) 0.15 add_money([100.01, 99.99]) 200.0 add_money([0, -13.00, 13.00]) 0.0 That's not clear cut to me. I think vertical conciseness has an advantage

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
Steve Howell [EMAIL PROTECTED] writes: 2) assert is not the simplest example of doctest. The style should be add_money([0.13, 0.02]) 0.15 add_money([100.01, 99.99]) 200.0 add_money([0, -13.00, 13.00]) 0.0 That's not clear cut to me. I think vertical

Bidirectional Networking

2008-12-11 Thread Emanuele D'Arrigo
Hi everybody! A networking question! I've been looking at and tinkering a little with the various networking modules in python. The examples are pretty clear and a module such as the SimpleXMLRPCServer is actually simple! All the examples though are based on a client interrogating a server

Re: How to import only one module in a package when the package __init__.py has already imports the modules?

2009-11-01 Thread Peng Yu
that I only replace 'x' in f() but not in g(). However, if I only have f() in a file, I can simply replace all x in the file without worrying replacing 'x' in g(). Is this clear? Oh wait, I get it... you want to do a global search-and-replace over the entire file. *face-palm* Yes. You get

Re: dictionary with tuple keys

2009-12-14 Thread Ben Finney
be. Specifically, I want to sum the float values once I've collected these keys. I am staring at my screen, pondering ugly things, and I just know I must be missing a Pythonic solution. Any suggestions? The Schwartzian transform, though primarily designed for unusual sorting requirements, seems

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
!) I agree, and I know that's a rhetorical question, but here goes Arbitrarily sized was the key point ;-) In that, you set the sizes of the div's explicitly. I wasn't clear in my rhetorical question; the size is arbitrary because you have no control over it. You can do horizontal

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
centered no matter what size the container was. It is even easier to fit it to the browser window. I wasn't clear in my rhetorical question; the size is arbitrary because you have no control over it.       You can do horizontal center easy; just set margin-left and margin-right to auto

Re: WxPython versus Tkinter.

2011-01-24 Thread Alexander Kapps
There are two completely different issues here: 1. Tyler's/Octavian's very valid (but AFAICT now somewhat over-expressed) point that Tk/Tkinter isn't accessible. I accept this, but don't see any point against Tk(inter) in this per se. Tk(inter) could be advanced to support screen readers

Re: RE Module Performance

2013-07-29 Thread Chris Angelico
/uploads/2013/05/Screen-Shot-2013-05-14-at-10.15.29-PM.png. The best verification of these graphs I could find was https://blog.mozilla.org/nnethercote/category/garbage-collection/, although it's not immediately clear in Chrome's and Opera's case mainly due to none of the benchmarks pushing memory

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

2013-10-26 Thread rusi
On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: Rusi said: Users of GG are requested to read and follow these instructions https://wiki.python.org/moin/GoogleGroupsPython Seriously, it's not exactly clear what protocol GG users are expected follow to make posts

Re: using subprocess.Popen does not suppress terminal window on Windows

2012-09-12 Thread Dave Angel
On 09/12/2012 11:26 AM, janis.judvai...@gmail.com wrote: Hi, and I'm sorry for using this old thread, but I'm experiencing the same problem, except, that I wan't to execute any shell script or exe without blank terminal window. Is there any way in python to supress blank console screen

Re: [newbie] problem trying out simple non object oriented use of Tkinter

2013-12-06 Thread Christian Gollwitzer
Am 06.12.13 14:12, schrieb Jean Dubois: It works but it's not all clear to me. Can you tell me what label.bind(1, quit) is standing for? What's the 1 meaning? bind connects events sent to the label with a handler. The 1 is the event description; in this case, it means a click with the left

Re: How to safely maintain a status file

2012-07-12 Thread Steven D'Aprano
On Thu, 12 Jul 2012 23:49:02 -0400, Gene Heskett wrote: When I wanted to impress the visiting frogs, I often did something I have never been able to do on any other operating system since, start assembling a long assembly language file on one of the screens on the color monitor, hit the clear

Re: running Python2 Python3 parallel concurrent

2011-04-04 Thread harrismh777
I can come up with. I don't know if anyone wants to see a PEP on that or not. And, while I'm at it, I think I'll look into a way to provide a clear screen option for the IDLE interactive window... :) kind regards, m harris -- http://mail.python.org/mailman/listinfo/python-list

Re: Proper way to handle errors in a module

2011-05-11 Thread Patty
what is considered the best way to handle errors when writing a module. Do I just let exceptions go and raise custom exceptions for errors that don't trigger a standard one? Have the function/method return nothing or a default value and show an error message? I'm sure there's not a clear-cut answer

Re: cmd.exe on WIndows - problem with displaying some Unicode characters

2014-08-04 Thread Terry Reedy
them into API calls. So, yeah, without that anything that outputs ANSI sequences isn't going to work. Maybe I didn't write it clear. :-) What I meant was, that even though I don't use any other functions from colorama (I color all the strings with termcolor) - I still have to use init

[issue15383] Autocompletion crashes Python if the __builtins__ module cannot be found.

2012-07-17 Thread Tyler Crompton
New submission from Tyler Crompton gtr...@gmail.com: Doing one of the following crashes Python. del __builtins__ a{Tab} or builtins = __builtins__ del __builtins__ a{Tab} If you do a print screen, immediately, you will see the following error: *** Internal Error

[issue18104] Idle: make human-mediated GUI tests usable

2013-05-31 Thread Terry J. Reedy
-developement Win7 machine, so probably with the extra line end char). I think it is good enough to commit, but I am curious if the instructions added to the test are clear enough. (The dialog is the one seen if Save as New Custom Theme (Highlighting tab) or Save as New Custom Key Set (Key tab

Re: How to wow someone new to Python

2015-01-16 Thread Marko Rauhamaa
you do? My experience is that if you have your customer try their hand on programming and complete a simple challenge, they'll be extremely impressed. Did I manage that? On the other hand, if you want to demo your greatest achievements at the screen, they will be left unmoved. Even my favorite Zynga

Re: pyqtgraph window position

2015-02-14 Thread Poul Riis
Den lørdag den 14. februar 2015 kl. 06.59.20 UTC+1 skrev Cousin Stanley: I can control the size of my pyqtgraph window below with 'resize'. But how can I control the position on the screen? Also, try w.setGeometry( x_pos , y_pos , width , height ) -- Stanley C

Re: teacher need help!

2015-10-18 Thread Tim Golden
the message on the above screen shot. This is a problem since I have 24 students! I have uninstalled and reinstalled and done all that I know to do. Any suggestions? Geneva, Thanks for attaching a clear error message. Because of the ways in which this list is published, some people will only see

Re: how to group by function if one of the group has relationship with another one in the group?

2017-07-28 Thread Ho Yeung Lee
actually i used in this application if same color is neighbor like connected then group them i use for segmentation of words in screen capture https://stackoverflow.com/questions/45294829/how-to-group-by-function-if-any-one-of-the-group-members-has-neighbor-relationsh i asked here too, but i do

Is this a bug or a feature in TkInter?

2018-05-10 Thread charmingoldgit
print("buttonHandler routine received arguments:", arg1.ljust(8), arg2, arg3) def buttonHandler_a(self, event, arg1, arg2, arg3): print("buttonHandler_a received event", event) self.buttonHandler(arg1, ar

Re: Processing a key pressed in Python 3.6

2018-01-23 Thread eryk sun
using the Windows console, it calls the high-level ReadConsole (or ReadFile) function, which performs a 'cooked' read. In this case some keys are reserved. Escape is consumed to clear/flush the input buffer. Function keys and arrows are consumed for line editing and history navigation. And for some reas

[issue38882] IDLE should not make the about dialog be a transient of the withdrawn root window

2019-11-22 Thread Marc Culler
Marc Culler added the comment: It definitely makes sense for an on-screen window to have a transient dialog. With a little care (see "messages boxes" in the widget demo) on the mac the transient can be a "sheet" that opens from the top of the master window.

Re: Fwd: Problemas para ejecutar Python en windows 7

2020-04-02 Thread DL Neil via Python-list
re-installed from the official repository. However, whilst it will now start from Geany (editor) there is no (longer) a Windows-Desktop short-cut (which may mean, entry on the Start Menu or a 'box' in the Win-10 opening-screen Start Menu replacement-thingy). I'm not clear whether the "short

[issue41763] IDLE: scale font to Windows' "zoom" factor

2020-09-14 Thread E. Paine
I am E. Paine here is solely because I prefer if Google did not index my entire life ;-) On the subject, I would like to thank you Terry 1. for all your work on IDLE and CPython more generally and 2. because you were my first experience of the devs and were very patient despite my cl

Non IDE development strategy - what do others do that's fairly simple?

2020-07-29 Thread Chris Green
to edit in one window and test in an adjacent window on the same screen, I don't find GUI development environments comfortable. The existing code simply lives in ~/bin with a couple of modules in ~/bin/pymods (which directory is in my PYTHONPATH). I use mercurial for configuration management

Re: Exploring terminfo

2021-01-15 Thread Grant Edwards
visible to Python. > > That would indeed explain it. > >> Now the question: is there a way to tell the curses module to flush >> its stdout FILE stream? > > Indeed. But unless it's trivial it rather defeats the concept of > using the terminfo functions to create text e

[issue45934] python curses newterm implementation

2021-12-05 Thread Julius Hamilton
Julius Hamilton added the comment: I’m trying to patch this bug. Here are my current working questions: 1. What is the relationship between an fd (file descriptor) and a terminal? What software / hardware component goes to “fd 0” to receive input from it? Is there a GNU Screen command

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

2011-01-20 Thread Octavian Rasnita
it is accessible. Well, a GUI lib is accessible only if JAWS and Window Eyes offer support for it because those are the screen readers used by the majority and this is because they have the most features. To be more clear and not to include in the discussion many interfaces, we are comparing

Re: Application window geometry specifier

2021-01-12 Thread Igor Korot
st it!! > > > > > > > > Imagine you are developing an application that need to communicate > > > > with the database. > > > > Also imagine this application will be used by millions of users inside > > > > different companies. > >

Re: dynamic type returning NameError:

2013-07-29 Thread Tim O'Callaghan
On Monday, July 29, 2013 1:43:39 AM UTC-4, Steven D'Aprano wrote: On Sun, 28 Jul 2013 18:38:10 -0700, Tim O'Callaghan wrote: Hi, I hope that this hasn't been asked for the millionth time, so my apologies if it has. [...] I hope that this was clear enough, apologies

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

2011-01-20 Thread Octavian Rasnita
or Flash is accessible no matter if they follow the recommendations for accessibility, because the screen readers don't support those interfaces. Yes, that's a problem but we divagate. If you believe that is a problem then you cannot say, Accessibility does not require special effort without

Re: Python editors again (it's not the same old request)

2007-06-10 Thread Eric S. Johansson
. Well, I'm not sure about a screen reader but I'm using speech to text. My apologies if I wasn't clear (reading back, I see a couple dropouts that I didn't catch and change the meaning significantly. As a brief aside, one of the classic problems is can versus can't. Which leaves you very much

Re: [Edu-sig] teaching python using turtle module

2009-11-29 Thread Edward Cherlin
(if- and while- statements), Repeat is used much more often. but of course we can provide examples of any behavior you like. I like to use the turtle to generate sequences, where I can use a conditional to stop when the turtle would go off the screen. Fibonacci numbers, for example, or exponentials

Re: OT: This Swift thing

2014-06-16 Thread Chris Angelico
. That's why purported battery life isn't such an advertisable point. And it's why the business I worked for recently, where we sold second-hand laptops, was very clear about our battery testing methodology - it was approximately equivalent to light usage, keeping the screen, CPU, and disk all

Re: Question about idioms for clearing a list

2006-02-08 Thread Ed Singleton
to use del to clear a list appears to the inexperienced as being an odd shaped brick when they've already used the .clear() brick in other places. Having bricks that work in lots of places makes the language 'guessable'. I've never cleared a list before, but I've cleared dictionaries and I guess

Re: Hide the python-script from user

2007-04-06 Thread hlubenow
) # Just trying to clean the screen: if sys.platform == win32: os.system(cls) else: os.system(clear) print print Hello ! print print I just encrypted some text. It looks like this now: print print base64.b64encode(a[0]) print print 'Please notice, that I just encoded the text once more using

Re: Hide the python-script from user

2007-04-07 Thread hlubenow
the text to encrypt, a password is generated: a = doEncrypt(For your eyes only !, Melina) # Just trying to clean the screen: if sys.platform == win32: os.system(cls) else: os.system(clear) print print Hello ! print print I just encrypted some text. It looks like this now: print

Sun Grid Engine / NFS and Python shell execution question

2010-07-22 Thread J.B. Brown
within seconds of distributing the jobs to the compute nodes -- even though I'm doing nothing but executing the clear screen command, which technically doesn't pipe any output to the location for logging stdout. Even if I change the SGE script file to redirect standard output and error to explicitly

Re: Sun Grid Engine / NFS and Python shell execution question

2010-07-22 Thread MRAB
system skyrockets within seconds of distributing the jobs to the compute nodes -- even though I'm doing nothing but executing the clear screen command, which technically doesn't pipe any output to the location for logging stdout. Even if I change the SGE script file to redirect standard output

<    1   2   3   4   5   >