anygui-users Mailing List for anygui - Generic GUI Module for Python
Brought to you by:
mlh
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(9) |
Feb
(27) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
2003 |
Jan
(3) |
Feb
(2) |
Mar
(19) |
Apr
(15) |
May
(11) |
Jun
(2) |
Jul
|
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
(2) |
2004 |
Jan
|
Feb
(5) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
From: Dennis G. <de...@li...> - 2004-10-20 21:14:25
|
I am new to anygui. I very much like the speed at which I am able to develop an interface and the size of the code. Tkinter is what I have used in the past. I have a question. Looked in the archives, perhaps I missed it. I would like to include an image in my app, but have not figured out the right magic and incantations to do so. :) I have something like this...hopefully, there is enough to get the idea of what I am trying to accomplish. I don't get any errors, but on the Frame, I see the word Label. Can someone pull the mud from my eyes? Thanks, tons! from anygui import * import Image, ImageTk class MainFrame: def __init__( self, parent ): self.filename = 'gnome-unknown.png' self.file = Image.open(self.filename) self.image = ImageTk.PhotoImage(self.file) self.theScan = Label(image = self.image, position = (225, 200)) fMain.add(self.theScan) win.add(fMain, hmove = 1) app = Application() win = Window(size = ( 650, 475 )) app.add(win) fMain = Frame(frameOpt) MainFrame(fMain) app.run() dennis - have gudulka, will travel http://KafanaKlub.com |
From: Magnus L. H. <ma...@he...> - 2004-09-30 11:44:00
|
st*rbrite <mo...@ho...>: > > I have downloaded Anygui. > I am using Python Win on XP operating sys. > I am learning Python; self-teaching myself from the Practical Python > book. > > I am having problems implementing the app = Application( ) > I get the following error: > > Traceback (most recent call last): > File > "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py" Hm. I'm not quite familiar with the scriptutils part of the PythonWin framework, really... I guess it may be interacting unfavourably with the way Anygui dynamically loads things, perhaps? > , line 310, in RunScript > exec codeObject in __main__.__dict__ > File "C:\Documents and Settings\M&I\My Documents\Python Programs\Gui > test.py", line 2, in ? > app = Application() > NameError: name 'Application' is not defined > > This is my Python Script: > > from anygui import * > app = Application() [snip] Well, if things were working as they should, you should *not* be getting a NameError here. It does seem that the RunScript thing (which gives the error) messes directly with namespaces etc., which Anygui also does. I would guess that running your program with an ordinary Python interpreter would (or, at least, could ;) work... [snip] > I had this issue before and I reinstalled Anygui. It seemed to help, > but in the middle of my work, after successfully creating my 'box', > I ran it again and I received the above error. Very strange. As I said, this seems to be some problem in the interaction between Anygui and the PythonWin RunScript thing. I'm not sure how it works -- you could perhaps ask on a PythonWin list? A possible solution would be to import things directly from the back-end of your choice. E.g., from anygui.backends.mswgui import * app = Application() ... If you're running PythonWin, I guess the mswgui back-end should work. > Please Help. is it just me. am I missing something. No, I don't think you're doing anything wrong -- at least not as far as I can see. > lol; Thank you > Monica. -- Magnus Lie Hetland Fallen flower I see / Returning to its branch http://hetland.org Ah! a butterfly. [Arakida Moritake] |
From: st*rbrite <mo...@ho...> - 2004-09-29 14:46:43
|
I have downloaded Anygui. I am using Python Win on XP operating sys. I am learning Python; self-teaching myself from the Practical Python book. I am having problems implementing the app = Application( ) I get the following error: Traceback (most recent call last): File "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py" , line 310, in RunScript exec codeObject in __main__.__dict__ File "C:\Documents and Settings\M&I\My Documents\Python Programs\Gui test.py", line 2, in ? app = Application() NameError: name 'Application' is not defined This is my Python Script: from anygui import * app = Application() win = Window(title='Simple Editor') app.add(win) loadButton = Button(text='open me', height=25) win.add(loadButton, right=5, top=5, hmove=1) saveButton = Button(text='keep me', height=25) win.add(saveButton, right=(loadButton, 10), top=5, hmove=1) filename = TextField(height=25) win.add(filename, right=(saveButton, 10), top=5, left=5, hstretch=1) contents = TextArea() win.add(contents, top=(filename, 5), left=5, right=5, bottom=5, hstretch=1, vstretch=1) def load(event): file = open(filename.text) contents.text = file.read() file.close() link(loadButton, load) def save(event): file = open(filename.text, 'w') file.write(contents.text) file.close() link(saveButton, save) app.run() I had this issue before and I reinstalled Anygui. It seemed to help, but in the middle of my work, after successfully creating my 'box', I ran it again and I received the above error. Please Help. is it just me. am I missing something. lol; Thank you Monica. |
From: Magnus L. H. <ma...@he...> - 2004-03-30 16:41:31
|
Andrew Powell <an...@sh...>: > > Hello all. Newcommer to the newsgroups so please let me know if Im not > adhering to any policy. It would seem you aren't... <wink> This list is about the GUI package "Anygui", not about "any gui"... I don't see how your problem relates to Anygui at all -- I'd suggest that you ask on comp.lang.python instead (although maybe someone on this list can reply to you directly, if they know about the stuff you're talking about). If I'm misunderstanding you, and this *does* relate to Anygui, then I'm sorry. -- Magnus Lie Hetland "The mind is not a vessel to be filled, http://hetland.org but a fire to be lighted." [Plutarch] |
From: Andrew P. <an...@sh...> - 2004-03-29 07:20:12
|
Hello all. Newcommer to the newsgroups so please let me know if Im not adhering to any policy. Ive setup an app (.NET app) which is using the MSScriptControl. I have the ActivePython package installed and the ActiveScript engine for Python registered. Thats all peachykeen. Im running into a problem whereby Objects that Ive extended to the script arent being 'seen' correctly by the engine. Other languages such as VBScript, JScript and RubyScript are dealing with and using the objects just fine. The following is an error that the pyscript engine returned upon using an object ive named 'Graphics'. The following error occurs when I try to use the methods, properties or subclasses of any object extended to the script via MSScriptControl.AddObject. Error Number : -2147352567 Description : Traceback (most recent call last): File "<Script Block >", line 22, in Widget_Activate Widget_Paint() File "<Script Block >", line 36, in Widget_Paint Graphics.Clear File "C:\Python23\Lib\site-packages\win32comext\axscript\client\pyscript.py", line 146, in __getattr__ return self._scriptItem_.subItems[string.lower(attr)].attributeObject AttributeError: 'NoneType' object has no attribute 'subItems' Line 145 Column -1 I would greatly appreciate any feedback on this, and how to get objects extended to the scripts working in python. Thanks! |
From: Magnus L. H. <ma...@he...> - 2004-02-26 21:52:47
|
Marco <Si...@ev...>: > > Magnus, > > Eight days ago I wrote you that I had found a bug by using Anygui > with PythonWin (a sudden crash). The release of PythonWin was 157. > Today I have known that the release I had used was recent (also > suitable for Python 2.3), but not the last. So I downloaded the 163 > release of PythonWin and ... now there is no problem with Anygui! > Which is the reason? Perhaps owing the fact that there are new COM > functions. Right -- mswgui does use those, yes. (Not that I'm an expert on that...) > Sunt nomina semina rerum (Latin proverb:"Names are roots of the > things", i.e. a man called Magnus must be Great) Heh -- I wouldn't bet on it. In the words of the bard (in the play I am actually currently rehearsing, in fact): "What's in a name? That which we call a rose By any other name would smell as sweet." I'm just glad they didn't name me Major or Maximus :] - M -- Magnus Lie Hetland "The mind is not a vessel to be filled, http://hetland.org but a fire to be lighted." [Plutarch] |
From: Marco <Si...@ev...> - 2004-02-26 21:19:45
|
Magnus, Eight days ago I wrote you that I had found a bug by using Anygui with = PythonWin (a sudden crash). The release of PythonWin was 157. Today I = have known that the release I had used was recent (also suitable for = Python 2.3), but not the last. So I downloaded the 163 release of = PythonWin and ... now there is no problem with Anygui! Which is the reason? Perhaps owing the fact that there are new COM = functions. Sunt nomina semina rerum (Latin proverb:"Names are roots of the things", = i.e. a man called Magnus must be Great) Best Regards Marco Siracusano - Florence (Italy) Si...@ev... |
From: Magnus L. H. <ma...@he...> - 2004-02-19 23:12:40
|
Ranger One <ran...@gm...>: > > Hi again. > > Sorry (pressed accidently CTRL-Enter)... :( > > Is there any tutorial on how to use TabControls? I'm using Python with > Windows (XP) and want to make a multi-tabbed dialog application. We don't really have that sort of thing yet... Anygui is a highly minimalist toolkit -- for advanced widgets, I suggest looking into the back-end packages, such as wxPython or PyQt, themselves. > Thank's in advance! > > > bye, > Stevie -- Magnus Lie Hetland "The mind is not a vessel to be filled, http://hetland.org but a fire to be lighted." [Plutarch] |
From: Ranger O. <ran...@gm...> - 2004-02-19 09:52:24
|
Hi again. Sorry (pressed accidently CTRL-Enter)... :( Is there any tutorial on how to use TabControls? I'm using Python with Windows (XP) and want to make a multi-tabbed dialog application. Thank's in advance! bye, Stevie |
From: Ranger O. <ran...@gm...> - 2004-02-19 09:50:35
|
Hi! I'm new to Python and new to Anygui... So please don't kill me for this question: |
From: Magnus L. H. <ma...@he...> - 2003-12-19 09:37:43
|
fa...@hu... <fa...@hu...>: > > I made a Program with a textfield and some things with them. What was the question? [snip] > os.system('C://"Program Files"//"Internet Explorer"//IEXPLORE.EXE') You might want to look into the webbrowser module... -- Magnus Lie Hetland "The mind is not a vessel to be filled, http://hetland.org but a fire to be lighted." [Plutarch] |
From: <fa...@hu...> - 2003-12-17 02:34:24
|
I made a Program with a textfield and some things with them. from anygui import * app = Application() win = Window(title='kioii') win.size = 107, 31 app.add(win) box = TextField(height='25', width='100') win.add(box, right=3, top=3, bottom=3, left=3) def com(**kwds): if box == 'qwqq': import os os.system('C://"Program Files"//"Internet Explorer"//IEXPLORE.EXE') link(box, com) app.run() Concerned about your privacy? Follow this link to get FREE encrypted email: https://www.hushmail.com/?l=2 Free, ultra-private instant messaging with Hush Messenger https://www.hushmail.com/services.php?subloc=messenger&l=434 Promote security and make money with the Hushmail Affiliate Program: https://www.hushmail.com/about.php?subloc=affiliate&l=427 |
From: Luc S. <luc...@gm...> - 2003-09-26 13:25:48
|
On 26/09/2003 16:03, Magnus Lie Hetland wrote: > Andreas Neudecker <a.n...@un...>: > > >>So I tried retrieving the nightly CVS snapshot, but this did not work >>either. Then I tried checking out from CVS. But this failed due to >>repeated "Connection reset by peer." [2] > > > I think SourceForge is moving stuff to new servers, and therefore CVS > isn't working like it should. That'll be fixed soon, hopefully. I was able to update my local copy without problems, so the SF server should be ok (at least now). Luc |
From: Magnus L. H. <ma...@he...> - 2003-09-26 13:05:19
|
Tony Maniaci <tma...@tr...>: [snip] > Runtime Error from the Microsoft Visual C++ Runtime Library This error message is to vague for me to do anything about it. Does anyone else know what's going on? -- Magnus Lie Hetland "In this house we obey the laws of http://hetland.org thermodynamics!" Homer Simpson |
From: Magnus L. H. <ma...@he...> - 2003-09-26 13:04:00
|
Andreas Neudecker <a.n...@un...>: > > Hi. > Hi! You need to subscribe to the list to post and read answer. I approved this message manually. [snip] > So I tried retrieving the nightly CVS snapshot, but this did not work > either. Then I tried checking out from CVS. But this failed due to > repeated "Connection reset by peer." [2] I think SourceForge is moving stuff to new servers, and therefore CVS isn't working like it should. That'll be fixed soon, hopefully. I've added a solution to this problem to the FAQ -- it's the change of the event handler signature from 0.1.1 to the upcoming 0.2 that's bothering you. To keep using 0.1.1, just change the event handlers. Otherwise, the tarball should work -- what error message did you get with that? -- Magnus Lie Hetland "In this house we obey the laws of http://hetland.org thermodynamics!" Homer Simpson |
From: Andreas N. <a.n...@un...> - 2003-09-22 20:30:58
|
Hi. I have just installed anygui (0.1.1) and started with the tutorial. The sample program (appendix A., copy-n-pasted to new file) doesn't work for me: When clicking the button I get [1] (see below): I looked at the user mailing list archive and found a similar report for the windows version, but no solution. So I tried retrieving the nightly CVS snapshot, but this did not work either. Then I tried checking out from CVS. But this failed due to repeated "Connection reset by peer." [2] Any idea what I can do to get a working version of anygui? I am very eager to try it out. Perhaps someone can email me a current tarball? Kind regards Andreas [1]: me@pegasus:~$ python anygui-demo.py Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/gtk-1.2/gtk.py", line 127, in __call__ ret = apply(self.func, a) File "/usr/lib/python2.2/site-packages/anygui/backends/gtkgui.py", line 95, in _gtk_clicked send(self, 'click') File "/usr/lib/python2.2/site-packages/anygui/Events.py", line 105, in send result = handler(**args) File "/usr/lib/python2.2/site-packages/anygui/References.py", line 73, in __call__ return self.func(*args, **kwds) TypeError: handler() got an unexpected keyword argument 'source' [2] neudecke@pegasus:~$ cvs -d:pserver:ano...@cv...:/cvsroot/anygui login Logging in to :pserver:ano...@cv...:2401/cvsroot/anygui CVS password: cvs [login aborted]: reading from server: Connection reset by peer neudecke@pegasus:~$ cvs -d:pserver:ano...@cv...:/cvsroot/anygui login Logging in to :pserver:ano...@cv...:2401/cvsroot/anygui CVS password: neudecke@pegasus:~$ cvs -d:pserver:ano...@cv...:/cvsroot/anygui co anygui cvs [checkout aborted]: reading from server: Connection reset by peer neudecke@pegasus:~$ cvs -d:pserver:ano...@cv...:/cvsroot/anygui co anygui cvs [checkout aborted]: reading from server: Connection reset by peer n [...] |
From: Magnus L. H. <ma...@he...> - 2003-09-21 14:53:33
|
Tony Maniaci <tma...@tr...>: > > I just istalled the latest Windows binary and I did a backend() and > received 'msw'. But when I enter app.run() it resuled in a serious > exception and existed Python. I'm running on Python23 on Windows XP. If > it found the MS Windows backend it should work fine. I have the Win32 > extensions from Pythonwin. Well, what is the exception? Could you give us a stacktrace? -- Magnus Lie Hetland "In this house we obey the laws of http://hetland.org thermodynamics!" Homer Simpson |
From: Tony M. <tma...@tr...> - 2003-09-20 23:41:02
|
I just istalled the latest Windows binary and I did a backend() and received 'msw'. But when I enter app.run() it resuled in a serious exception and existed Python. I'm running on Python23 on Windows XP. If it found the MS Windows backend it should work fine. I have the Win32 extensions from Pythonwin. |
From: Tony M. <tma...@tr...> - 2003-09-20 23:38:56
|
I just istalled the latest Windows binary and I did a backend() and received 'msw'. But when I enter app.run() it resuled in a serious exception and existed Python. I'm running on Python23 on Windows XP. If it found the MS Windows backend it should work fine. I have the Win32 extensions from Pythonwin. |
From: Magnus L. H. <ma...@he...> - 2003-06-09 18:22:11
|
bob smith <bob...@ho...>: > > Hi. I'm running anygui 0.1.1 under Windows XP Home w/ Python 2.2.2 and > Tkinter. However, I have a problem. Any window I create can't be > maximized. When I try to maximize a window, the window looks like it > maximizes for a split second but then it shrinks back down to a height that > is almost maximum, and it's original width. Subsequent attempts yields the > same results. The window won't go beyond it's original width. This > happens for any window I create, even the most simple: [snip] > Any ideas? Not really... But I just tried with Tkinter and the CVS version of Anygui (also on Windows XP) and it worked fine, so it seems this is a problem with the 0.1.1 version. > I really like the idea of anygui and love to get it working. Great :) It may be that an effort will be made this summer to finish testing the CVS version and get a release out. > Thanks. -- Magnus Lie Hetland "In this house we obey the laws of http://hetland.org thermodynamics!" Homer Simpson |
From: bob s. <bob...@ho...> - 2003-06-07 05:03:41
|
Hi. I'm running anygui 0.1.1 under Windows XP Home w/ Python 2.2.2 and Tkinter. However, I have a problem. Any window I create can't be maximized. When I try to maximize a window, the window looks like it maximizes for a split second but then it shrinks back down to a height that is almost maximum, and it's original width. Subsequent attempts yields the same results. The window won't go beyond it's original width. This happens for any window I create, even the most simple: from anygui import * app = Application() win = Window() app.add(win) app.run() Any ideas? I really like the idea of anygui and love to get it working. Thanks. _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
From: Magnus L. H. <ma...@he...> - 2003-05-14 12:50:47
|
Quiet <i-...@na...>: > > How to create the scrolled table with AnyGUI? Not possible yet. > Anton. -- Magnus Lie Hetland "Lousy minor setbacks! This world sucks!" http://hetland.org -- Homer Simpson |
From: Magnus L. H. <ma...@he...> - 2003-05-14 12:49:13
|
Quiet <i-...@na...>: > > How to create the scrolled table with AnyGUI? Not possible yet. > Anton. > > Please, mailto:i-...@na... -- Magnus Lie Hetland "Lousy minor setbacks! This world sucks!" http://hetland.org -- Homer Simpson |
From: Quiet <qu...@ho...> - 2003-05-13 10:27:52
|
Greetings to all... :-) There are people from Russia? I the first? (-: Anton :-) mailto:qu...@ho... http://freezope2.nipltd.net/quiet http://www.i-quiet.narod.ru |
From: Quiet <qu...@ho...> - 2003-05-13 10:18:43
|
Test message (-: Anton :-) mailto:qu...@ho... http://freezope2.nipltd.net/quiet http://www.i-quiet.narod.ru |