You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
(146) |
Oct
(78) |
Nov
(69) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(188) |
Feb
(142) |
Mar
(143) |
Apr
(131) |
May
(97) |
Jun
(221) |
Jul
(127) |
Aug
(89) |
Sep
(83) |
Oct
(66) |
Nov
(47) |
Dec
(70) |
2003 |
Jan
(77) |
Feb
(91) |
Mar
(103) |
Apr
(98) |
May
(134) |
Jun
(47) |
Jul
(74) |
Aug
(71) |
Sep
(48) |
Oct
(23) |
Nov
(37) |
Dec
(13) |
2004 |
Jan
(24) |
Feb
(15) |
Mar
(52) |
Apr
(119) |
May
(49) |
Jun
(41) |
Jul
(34) |
Aug
(91) |
Sep
(169) |
Oct
(38) |
Nov
(32) |
Dec
(47) |
2005 |
Jan
(61) |
Feb
(47) |
Mar
(101) |
Apr
(130) |
May
(51) |
Jun
(65) |
Jul
(71) |
Aug
(96) |
Sep
(28) |
Oct
(20) |
Nov
(39) |
Dec
(62) |
2006 |
Jan
(13) |
Feb
(19) |
Mar
(18) |
Apr
(34) |
May
(39) |
Jun
(50) |
Jul
(63) |
Aug
(18) |
Sep
(37) |
Oct
(14) |
Nov
(56) |
Dec
(32) |
2007 |
Jan
(30) |
Feb
(13) |
Mar
(25) |
Apr
(3) |
May
(15) |
Jun
(42) |
Jul
(5) |
Aug
(17) |
Sep
(6) |
Oct
(25) |
Nov
(49) |
Dec
(10) |
2008 |
Jan
(12) |
Feb
|
Mar
(17) |
Apr
(18) |
May
(12) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(4) |
Oct
(15) |
Nov
(45) |
Dec
(9) |
2009 |
Jan
(1) |
Feb
(3) |
Mar
(18) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(2) |
Sep
(1) |
Oct
(9) |
Nov
(13) |
Dec
|
2010 |
Jan
(2) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
|
Feb
|
Mar
(10) |
Apr
(44) |
May
(9) |
Jun
(22) |
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Bernie H. <ber...@ut...> - 2006-06-18 20:10:42
|
Hi Lance et al,=20 Your project sounds interesting and appears to be useful. Its a clear itch worth scratching. =20 But I have to =8Cpoll the audience=B9 on this one (particularly in reference to portability). I have a couple of applications that I use on windows and mac= . The wxWidgets are not the same size on both platforms, and no doubt they ar= e sized slightly differently on linux (gnome / kde) as well. This is okay if = I have lots of space to play with, but one of the apps was a data entry application where I had to fit a LOT on one page. So basically, I ended up making a different resource file for windows or mac. This leads to 2 things: 1. how difficult is it to specify a different resource file (i.e. Does the resource file always have to be fileName.rsrc.py where fileName.py is the script).=20 2. Are there any general guidelines as to sizing? e.g. If you have enough space horizontally for a mac, you should be fine for windows (or vice versa).=20 I mean the app is portable in terms of function, but for me its still tied to the OS because of layout issues. Take care, BERNiE I received a message from Lance Haig at approximately 6/17/06 5:25 AM. Abov= e is my reply. > Hi Alex, >=20 > This is how the original app works. You enter all the server names and > ipaddress for every Novell server on your network. > then you click the generate button and it creates a webpage that you can = host > anywhere. ( I add it to my desktop ) This page show the latest status of = the > servers with traffic lights that are linked to the servers web management > interface. >=20 > What the old app could not do was > 1. run on anything but windows ( I use Linux and Mac) written in VB > 2. import old pages to make changes (you had to recreate the page every t= ime > or edit the html) > 3. allow automatic upload to a Intranet. (we have junior types that monit= or > the systems and let us know when things go wrong) >=20 > These are the three things that prompted me to start looking for a langua= ge > that I could use to improve it. I tried PHP-GTK, PHP and then found > PythondCard. >=20 > At a later stage I want to look at perhaps doing a network scan (Using NM= AP) > to find servers so that you don't have to manually enter each server. > For small sites it is easy to do this but for us we have over 150 servers= . >=20 > So basically my new app should accomplish all this and be portable :-) >=20 > Not to optimistic I hope. >=20 > Lance >=20 > Alex Tweedly wrote: >> Lance Haig wrote: >>> =20 >>> I was going to build an app that generates a webpage to display server >>> status for Novell servers from a list of IP addresses and names. >>> I have been looking at the examples and I have seen your db browser and= also >>> the custdb sample. >>> =20 >>> The custdb sample has helped me to create the GUI and also to populate = the >>> fields from a csv file. I have a problem that the app does not refresh = the >>> list properly and was wondering if I should use sqllite instead. >>> =20 >> Lance, >> =20 >> a "dumb curiosity" question, if I may. Why would you use sqlite (or any >> database) for this app ? >> If what you are doing is displaying the current status, you shouldn't ne= ed a >> db at all. >> =20 >> On the other hand, if you have some other app filling in the db with cur= rent >> status, while this one displays it - then it still sounds a bit of an >> indirect path to use a db; if you want to explain the "big picture" a bi= t >> more, we might be able to suggest a more direct technique. >> =20 >> =20 --=20 |
From: Lance H. <lh...@ha...> - 2006-06-17 09:25:23
|
Hi Alex, This is how the original app works. You enter all the server names and ipaddress for every Novell server on your network. then you click the generate button and it creates a webpage that you can host anywhere. ( I add it to my desktop ) This page show the latest status of the servers with traffic lights that are linked to the servers web management interface. What the old app could not do was 1. run on anything but windows ( I use Linux and Mac) written in VB 2. import old pages to make changes (you had to recreate the page every time or edit the html) 3. allow automatic upload to a Intranet. (we have junior types that monitor the systems and let us know when things go wrong) These are the three things that prompted me to start looking for a language that I could use to improve it. I tried PHP-GTK, PHP and then found PythondCard. At a later stage I want to look at perhaps doing a network scan (Using NMAP) to find servers so that you don't have to manually enter each server. For small sites it is easy to do this but for us we have over 150 servers. So basically my new app should accomplish all this and be portable :-) Not to optimistic I hope. Lance Alex Tweedly wrote: > Lance Haig wrote: >> >> I was going to build an app that generates a webpage to display >> server status for Novell servers from a list of IP addresses and names. >> I have been looking at the examples and I have seen your db browser >> and also the custdb sample. >> >> The custdb sample has helped me to create the GUI and also to >> populate the fields from a csv file. I have a problem that the app >> does not refresh the list properly and was wondering if I should use >> sqllite instead. > Lance, > > a "dumb curiosity" question, if I may. Why would you use sqlite (or > any database) for this app ? > If what you are doing is displaying the current status, you shouldn't > need a db at all. > > On the other hand, if you have some other app filling in the db with > current status, while this one displays it - then it still sounds a > bit of an indirect path to use a db; if you want to explain the "big > picture" a bit more, we might be able to suggest a more direct technique. > > -- > Alex Tweedly http://www.tweedly.net > > > > -- > This message has been scanned for viruses and > dangerous content by *Red Armour MailScanner* > <http://www.redarmour.co.uk>, and is > believed to be clean. > > ------------------------------------------------------------------------ > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 16/06/2006 > > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Alex T. <al...@tw...> - 2006-06-17 09:19:28
|
Ashley Etchell wrote: >Hi all > >ive finally built my first little app, a MySQL process watcher, it works >quite will and displays in a way similar to linux 'top'. > > > Ashley, your app uses curses rather than a GUI - and this list is mostly populated by people writing GUI apps, particularly in PythonCard. I suspect most of the people on here will, like me, have no experience of curses, so we probably won't be able to be much help. You'd probably be better on a more general Python list rather than here, but I'm not honestly sure which one. >I have compiled the code into an exe using py2exe so i can distribute it >amongst colleagues > >only problem is, the app cursor is constantly in the waiting state (egg >timer under winXP), which doesnt bother me, but if i change focus to another >window, or try to move my app window, the process watcher app stops >responding and generates a windows error. > >so, how can i avoid the app from crashing, is this thread related in some >way? or simply n00b coding. I have included a copy of the python code that >was compiled below. > >there are other minor things too, like how do i hide the cursor in the app, >it currently gets moved to 0,0 on each refresh. > > > That's one question I might be able to answer :-) There are 2 cursors - the system cursor (usually controlled by mouse movement) and the text cursor within the app. The text cursor is moved to 0,0 because you have the call scr.move(0,0) immediately before the scr.refresh() I doubt if you can hide the system (graphics) cursor in a curses app - typically, only GUI apps are able to control it. Your app is always either busy, or in the time.sleep() call - and in both cases the "busy" cursor is the correct one. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 16/06/2006 |
From: Alex T. <al...@tw...> - 2006-06-17 08:58:24
|
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 16/06/2006 |
From: Lance H. <lh...@ha...> - 2006-06-17 07:59:51
|
Alex, Thanks for the suggestions. I am new to Python and Pythoncard so anything I do will be new to me. As Andy suggested I have started to scratch and itch with an app that I found lacking and want to improve. I am sure you will all get used to me asking questions :-) Thanks Lance Alex Tweedly wrote: > Andy Todd wrote: > >> The usual answer is to scratch your own itch. If you're looking to >> >> improve your knowledge and ability with PythonCard then I'd suggest >> starting with a small application that helps you out. For me it was >> an address book (which I'm not releasing because it wasn't very good) >> and then I moved on to a database query tool which became the >> dbBrowser sample. >> >> If you're building something that you want and/or need then it >> becomes much more than a learning exercise and you'll be better for >> the experience. >> >> > Also, it's generally more difficult to learn too many different things > at the same time, so try to pick an area where you already know some > of the other parts, so it's (mostly) PythonCard that you are learning > (and/or Python and/or wxPython). > > For instance, if you have already written some apps that analyze some > data without a GUI - is there some aspect of the data that would > benefit from being visualized ? - so you could re-use your knowledge > of how to read and handle the data. > > Or - if you really want some suggestions "out of the blue" > > - pick some simple game and try that. (e.g. minesweeper - not Chess !!) > - do something with a database (I never touch them myself, so have no > specific suggestions :-) > - spell checker (i.e. a PythonCard front-end to an existing checker) > (or a spell checker for PythonCard resource files ??) > - extend the findfiles tool to find and replace > |
From: Lance H. <lh...@ha...> - 2006-06-17 07:56:34
|
Andy, I am new to Python and Pythoncard and have just finished working through Alan Gauld's book "Learn to Program Using Python". It has been a great way to learn about python and programming. I was going to build an app that generates a webpage to display server status for Novell servers from a list of IP addresses and names. I have been looking at the examples and I have seen your db browser and also the custdb sample. The custdb sample has helped me to create the GUI and also to populate the fields from a csv file. I have a problem that the app does not refresh the list properly and was wondering if I should use sqllite instead. Anyway thanks a million for the suggestion Lance Andy Todd wrote: > Lance Haig wrote: > >> Any ideas for a newbie? >> >> Just looking for something that will help grow my skills. >> >> Thanks >> >> Lance >> >> -- >> *Lance Haig* >> Director >> >> > [snip] > > The usual answer is to scratch your own itch. If you're looking to > improve your knowledge and ability with PythonCard then I'd suggest > starting with a small application that helps you out. For me it was an > address book (which I'm not releasing because it wasn't very good) and > then I moved on to a database query tool which became the dbBrowser sample. > > If you're building something that you want and/or need then it becomes > much more than a learning exercise and you'll be better for the experience. > > Regards, > Andy > |
From: Ashley E. <as...@si...> - 2006-06-17 01:17:55
|
Hi all ive finally built my first little app, a MySQL process watcher, it works quite will and displays in a way similar to linux 'top'. I have compiled the code into an exe using py2exe so i can distribute it amongst colleagues only problem is, the app cursor is constantly in the waiting state (egg timer under winXP), which doesnt bother me, but if i change focus to another window, or try to move my app window, the process watcher app stops responding and generates a windows error. so, how can i avoid the app from crashing, is this thread related in some way? or simply n00b coding. I have included a copy of the python code that was compiled below. there are other minor things too, like how do i hide the cursor in the app, it currently gets moved to 0,0 on each refresh. kind regards Ash ----------- code here ----------- # tty.py db test # This app shows the active processes running on a MySQL database # Version: 0.1; not thread safe(?) # Author: Ashley Etchell <as...@si...> # first lines just brings in the libraries we use # "curses" being the interface to curses import curses, time, MySQLdb # Initialize the library -- get the "whole screen" window scr = curses.initscr() db = MySQLdb.connect(host="xxxxxxxxxxxxxxxxx",user="xxxxxxx",passwd="xxxxxxxxx",db="mysql") cursor = db.cursor() try: scr.nodelay(1) # make sure getch() is non-blocking scr.leaveok(0) # just leave the cursor where we moved it #max_y, max_x = scr.getmaxyx() # get the size of the screen while True: # Continuous loop y = 1 # set start positions x = 1 scr.addstr(y, 1, 'ID') scr.addstr(y, 8, 'User') scr.addstr(y, 16, 'Host') scr.addstr(y, 40, 'Database') scr.addstr(y, 58, 'Command') scr.addstr(y, 65, 'Time') scr.addstr(y, 73, 'Status') y = y +1 scr.addstr(y, 1, '--') scr.addstr(y, 8, '----') scr.addstr(y, 16, '----') scr.addstr(y, 40, '--------') scr.addstr(y, 58, '-------') scr.addstr(y, 65, '----') scr.addstr(y, 73, '------') y = y +1 cursor.execute("SHOW PROCESSLIST") res = cursor.fetchall() for row in res: #print row (ID,User,Host,Database,Command,Time,Status,SQL) = row scr.addstr(y, 1, "%s" % ID) # ID if User != None: # User scr.addstr(y, 8, User) # else: # scr.addstr(y, 8, 'None') # if Host != None: # Host scr.addstr(y, 16, Host) # else: # scr.addstr(y, 16, 'None') # if Database != None: # Database scr.addstr(y, 40, Database) # else: # scr.addstr(y, 40, 'None') # if Command != None: # Command scr.addstr(y, 58, Command) # else: # scr.addstr(y, 58, 'None') # if Time != None: # Time scr.addstr(y, 65, Time) # else: # scr.addstr(y, 65, 'None') # if Status != None: # Status scr.addstr(y, 73, Status) # else: # scr.addstr(y, 73, 'None') # y = y+1 if SQL != None: scr.addstr(y, 2, "Query: %s" % SQL) # SQL Query y = y+1 y = 1 row=() scr.move(0, 0) # move the cursor to upper/left scr.refresh() # make sure the window is updated scr.clear() time.sleep(1) # wait a while finally: cursor.close() db.close() curses.endwin() # return the terminal to regular state |
From: Carl W. <car...@ya...> - 2006-06-16 16:51:47
|
Anybody know of a version of wxPython that builds SMOOTHLY under cygwin? I've heard about problems, but not smooth builds. |
From: Alex T. <al...@tw...> - 2006-06-15 23:08:40
|
Andy Todd wrote: > The usual answer is to scratch your own itch. If you're looking to > >improve your knowledge and ability with PythonCard then I'd suggest >starting with a small application that helps you out. For me it was an >address book (which I'm not releasing because it wasn't very good) and >then I moved on to a database query tool which became the dbBrowser sample. > >If you're building something that you want and/or need then it becomes >much more than a learning exercise and you'll be better for the experience. > > Also, it's generally more difficult to learn too many different things at the same time, so try to pick an area where you already know some of the other parts, so it's (mostly) PythonCard that you are learning (and/or Python and/or wxPython). For instance, if you have already written some apps that analyze some data without a GUI - is there some aspect of the data that would benefit from being visualized ? - so you could re-use your knowledge of how to read and handle the data. Or - if you really want some suggestions "out of the blue" - pick some simple game and try that. (e.g. minesweeper - not Chess !!) - do something with a database (I never touch them myself, so have no specific suggestions :-) - spell checker (i.e. a PythonCard front-end to an existing checker) (or a spell checker for PythonCard resource files ??) - extend the findfiles tool to find and replace -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 14/06/2006 |
From: Ashley E. <as...@si...> - 2006-06-15 22:26:18
|
Hi all I am new to python and just getting to grips with it, although i have many years experience with PHP anyway, my question is, I want to create a small script, or later an exe that shows the MySQL db processes with SHOW PROCESSLIST in the style of linux 'top' app which refreshes the display every x seconds, initially, i want to display this process list in a 'DOS' or shell type window, or run directly from DOS or the command prompt. now, ive created a feww lines of code that fetch the rows from the db and print out a simple list of columns (in tuples?) import MySQLdb db = MySQLdb.connect(host="10.0.0.3",user="root",passwd="",db="mysql") cursor = db.cursor() cursor.execute("SHOW PROCESSLIST") res = cursor.fetchall() for row in result: print row cursor.close() db.close() i just need to know how to turn this isto a looping affair, which refrshes the display, rather than kicking out the info every time and information on how to achieve this so my questions are: are there any libs i need which i can import into my script to make this easier, i already have wxpython and pythonCard installed? would i be able to put this code inside a function and loop the function somehow: def ShowProc(): cursor.execute("SHOW PROCESSLIST") res = cursor.fetchall() for row in result: print row # some code here to refresh the display eg while True: ShowProc() i eventually want to create a GUI that does all this for me so i can run the small app on my desktop while working, to keep an eye on the db servers i have to manage but im happy to just get this running command line for now as its the first thing ive tried in python finally, am i even on the right track with this?? kind regards Ash ----- Original Message ----- From: "Andy Todd" <an...@ha...> To: "Lance Haig" <lh...@ha...> Cc: "PythonCard" <pyt...@li...> Sent: Thursday, June 15, 2006 10:23 PM Subject: Re: [Pythoncard-users] What Project is a good one to start on? > Lance Haig wrote: >> Any ideas for a newbie? >> >> Just looking for something that will help grow my skills. >> >> Thanks >> >> Lance >> >> -- >> *Lance Haig* >> Director >> > [snip] > > The usual answer is to scratch your own itch. If you're looking to > improve your knowledge and ability with PythonCard then I'd suggest > starting with a small application that helps you out. For me it was an > address book (which I'm not releasing because it wasn't very good) and > then I moved on to a database query tool which became the dbBrowser > sample. > > If you're building something that you want and/or need then it becomes > much more than a learning exercise and you'll be better for the > experience. > > Regards, > Andy > -- > -------------------------------------------------------------------------------- > From the desk of Andrew J Todd esq - http://www.halfcooked.com/ > > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 14/06/2006 > > |
From: Alex T. <al...@tw...> - 2006-06-15 22:20:41
|
Carl Wenrich wrote: > It's here if anyone's interested: > > http://www.geocities.com/carlwenrich/060524/index.htm > Neat idea. Not sure about doing it with a Neural Network, but wondered if you know that they've been using this approach (radar + cameras + variable speed limits) in the UK for the last 11 years - so your Congressman can even get a junket to come to London to see it in action :-) The M25 (major orbital freeway around London) has variable speed limits - see http://www.tollroadsnews.com/cgi-bin/a.cgi/LjLtBrFHEdmcEIJ61nsxIA or google "variable speed limit improve speed m25" They can change the speed limit individually per lane, and have the speed limit signs approx every 1/4 mile (at the densest part where I used to sit in traffic jams :-) -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 14/06/2006 |
From: Andy T. <an...@ha...> - 2006-06-15 21:31:32
|
Lance Haig wrote: > Any ideas for a newbie? > > Just looking for something that will help grow my skills. > > Thanks > > Lance > > -- > *Lance Haig* > Director > [snip] The usual answer is to scratch your own itch. If you're looking to improve your knowledge and ability with PythonCard then I'd suggest starting with a small application that helps you out. For me it was an address book (which I'm not releasing because it wasn't very good) and then I moved on to a database query tool which became the dbBrowser sample. If you're building something that you want and/or need then it becomes much more than a learning exercise and you'll be better for the experience. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Winston W. <win...@st...> - 2006-06-15 21:19:17
|
Very cool idea, and a nice description. -Winston On Jun 15, 2006, at 5:10 PM, Carl Wenrich wrote: > It's here if anyone's interested: > > http://www.geocities.com/carlwenrich/060524/index.htm > > Carl > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users ______________________________________________________ winston wolff - (646) 827-2242 - http://www.stratolab.com learning by creating - video game courses for kids in new york |
From: Carl W. <car...@ya...> - 2006-06-15 21:10:26
|
It's here if anyone's interested: http://www.geocities.com/carlwenrich/060524/index.htm Carl |
From: Carl W. <car...@ya...> - 2006-06-15 20:28:56
|
I just put a new pythoncard chess program (point to point) up on this site: http://www.geocities.com/carlwenrich/060610/index.htm Feel free to play with it, and let me know what you think. Carl |
From: Lance H. <lh...@ha...> - 2006-06-15 19:00:13
|
Any ideas for a newbie? Just looking for something that will help grow my skills. Thanks Lance -- *Lance Haig* Director *Work:* 07967967108 *Mobile:* 07967967108 *Email:* lh...@ha... <mailto:lh...@ha...> *http://www.linkedin.com/in/lancehaig * * * *HaigMail dot Com* <http://www.haigmail.com> See who we know in common <http://www.linkedin.com/e/wwk/6074413/> Want a signature like this? <http://www.linkedin.com/e/sig/6074413/> |
From: Andy T. <an...@ha...> - 2006-06-14 09:40:36
|
Scott Chapman wrote: > In wxGlade, I can add a StatusBar at the bottom of the panel. Can I do this in > PythonCard? I don't see it in the Components pulldown. > > Scott The status bar is an attribute of the background, not a separate component. If you are using the resourceEditor then from the Edit menu select "Background Info ...". On the resulting dialogue window you'll see a checkbox titled "Status bar on window". Select it. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Alex T. <al...@tw...> - 2006-06-14 09:37:33
|
Scott Chapman wrote: >In wxGlade, I can add a StatusBar at the bottom of the panel. Can I do this in >PythonCard? I don't see it in the Components pulldown. > > > It's in the "Background Info" (you can only have one, it can't be positioned, doesn't have all the usual characteristics, etc. so it doesn't need to be a full-blown component). In layoutEditor go into menu "Edit / Background info ....", and check the box "Status bar on window". You can then refer to it in your code simply as self.statusBar.text = "My new status" or text = self.statusBar.text This gives you a simple, single-field status bar; if you want more than that, you should be able to use the wxPython calls directly. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12/06/2006 |
From: Scott C. <sco...@mi...> - 2006-06-14 05:30:49
|
In wxGlade, I can add a StatusBar at the bottom of the panel. Can I do this in PythonCard? I don't see it in the Components pulldown. Scott -- q: Why do so many people take an instant dislike to MySQL and PHP? a: It saves time. ps: Use PostgreSQL and Python instead. |
From: Alex T. <al...@tw...> - 2006-06-13 16:06:11
|
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12/06/2006 |
From: Tjerk H. <tj...@br...> - 2006-06-13 11:04:46
|
There is one issue wich could make the oneEditor/tabcodeEditor better. If you open another tab and choose codefolding and then go back to the = first you=B4ve lost your codefolding. I like to use the indentation guide and whitespacing but when I open a = new file it opens without these options altough they are marked in the View Toolbox. Maybe codefolding, whitespaces and indentation guides could be part of = the Style option? I appreciate the dropdownboxes showing the widgets and the handlers = available. Greeting Tjerk |
From: Alex T. <al...@tw...> - 2006-06-13 00:17:33
|
Scott Chapman wrote: >I'm using PythonCard 0.8.2 on Windows XP Pro with Python 2.4.3. >When I add a widget to the screen and have it generate the code for it, it's not >automatically generating code stubs for the event handlers. Can I make it do that? > > > Not directly - but see below. >I run it with debug options on and I see it's adding bindings for a few things, >but not the widgets I added. > > It will automatically bind the events to the methods if they exist. So if you use the layoutEditor to add a button named "buttonMine", no binding happens. If you then add a handler on_buttonMine_mouseClick to the Python source, then it will be bound for you next time you run. There's no need (and no purpose) in adding event stub code (since by definition the stub code does nothing) - as soon as there is "real " code there, it will be bound to the event. When you run with the Message Watcher, it will show the "unused" events as gray, while the events for which there is code are shown in black (or you can click the checkbox to hide the unused ones). >Are there plans to make it work more like Visual Basic does where you could >right-click on a widget edit the Python code for the event handler you select? > > > No specific plans in the short term. However, there is already a feature which is (slightly) like that. In 0.8.2 there are actually two versions of the resource editor (resourceEditor and layoutEditor), and two versions of the code editor (codeEditor/codeEditor and oneEditor/tabcodeEditor). In both cases, the latter is the newer version, and we are fairly close to removing the older ones, as the newer versions get enough mileage under them to know they are OK. tabcodeEditor differs in two ways from the older codeEditor - you can edit multiple files simultaneously, in a "tabbed notebook" - there is some minor integration with resource files. If the file you are editing has a matching .rsrc.py file, then the "drop-down" choice above the notebook will be populated with a list of all your widgets. Selecting one of them will then display another drop-down, showing all the events for that widget type; those for which a handler has been found will show with a "+" (plus sign). Selecting one of these will find the relevant handler in the source file, while selecting an event for which there is not yet a handler will insert a stub handler (at current cursor position = beware !) It's an 'empty' stub (i.e. 3 lines of code) so it's not a big deal to have it inserted - the important thing was seeing the list of widgets and then a list of events. btw - the choice of name for the tool (i.e. 'oneEditor') might give a clue to the long-term thinking - but it's not solid enough to call it a 'plan' yet :-) -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: 11/06/2006 |
From: Scott C. <sco...@mi...> - 2006-06-12 19:58:39
|
I'm using PythonCard 0.8.2 on Windows XP Pro with Python 2.4.3. When I add a widget to the screen and have it generate the code for it, it's not automatically generating code stubs for the event handlers. Can I make it do that? I run it with debug options on and I see it's adding bindings for a few things, but not the widgets I added. Are there plans to make it work more like Visual Basic does where you could right-click on a widget edit the Python code for the event handler you select? Scott |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2006-06-08 17:49:26
|
On 5/6/06 19:07, Alex Tweedly wrote: > I had forgotten this was Windows only - now that you've reminded me of > that restriction, I'll either not implement it at all, or move its > priority (way) down and do it later. It sounds like a tiny but useful time saver, so I'd vote for putting it in eventually, even if it's Windows-only. -- XXXXXXXXXXX |
From: Lance H. <lh...@ha...> - 2006-06-07 13:25:27
|
Winston, Thanks for the tip. Lance Winston Wolff wrote: > I'd say the main thing you have to watch out for is testing on each > platform. There are still minor differences in each system. > > -Winston > > On Jun 5, 2006, at 11:46 AM, Lance Haig wrote: > > >> Hi, >> >> I am working my way through Alan Gaulds book for beginners as I >> have no programming experience. >> >> I have an idea and thought it best to ask here, is there anything >> to watch out for if you want to produce something that runs on >> Microsoft OSX and Linux. I just want to keep this in mind when I >> start doing the planning. >> >> Hope it is ok to ask here >> >> Thanks >> >> Lance >> >> -- >> Lance Haig >> Director >> Work: 07967967108 >> Mobile: 07967967108 >> Email: lh...@ha... >> http://www.linkedin.com/in/lancehaig >> <hmail1.jpg> >> HaigMail dot Com >> See who we know in commonWant a signature like this? >> <hmail1.jpg> >> _______________________________________________ >> Pythoncard-users mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/pythoncard-users >> > > > > > ______________________________________________________ > winston wolff - (646) 827-2242 - http://www.stratolab.com > learning by creating - video game courses for kids in new york > > > > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > -- *Lance Haig* Director *Work:* 07967967108 *Mobile:* 07967967108 *Email:* lh...@ha... <mailto:lh...@ha...> *http://www.linkedin.com/in/lancehaig * * * *HaigMail dot Com* <http://www.haigmail.com> See who we know in common <http://www.linkedin.com/e/wwk/6074413/> Want a signature like this? <http://www.linkedin.com/e/sig/6074413/> |