anygui-users Mailing List for anygui - Generic GUI Module for Python (Page 4)
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: Magnus L. H. <ma...@he...> - 2002-10-27 08:56:59
|
N. Wieland <nic...@ya...>: > [snip] > Thank you very much, it works ! > I've also discovered that this version of anygui (2.0) use Tkinter > instead of Gtk by default when the version 1.1 use Gtk (on my computer > of course). > I know of the wishlist thing, but maybe you want to know of this > behaviour... The version in CVS isn't even at alpha level yet, so you shouldn't count on it functioning like the final release will. The reason you don't get GTK at the moment is that the GTK back-end currently doesn't work (for 0.2). > Regards, > Nicholas > > P.S. I've noticed the cc ... If you want I can send my questions to > the devel ml. Not necessary. I just cc to keep the people there updated :) -- Magnus Lie Hetland Practical Python The Anygui Project http://hetland.org http://ppython.com http://anygui.org |
From: N. W. <nic...@ya...> - 2002-10-27 00:24:43
|
- ma...@he... : > > File "/usr/lib/python2.2/site-packages/anygui/__init__.py", line 9, > > in application raise RuntimeError, 'no application exists' > > RuntimeError: no application exists > > This error is the problem. With the current CVS version you can't > create Windows unless there is an Application object in existence. Try > to move > > app = Application() > > to the top of your code and see if that helps. Thank you very much, it works ! I've also discovered that this version of anygui (2.0) use Tkinter instead of Gtk by default when the version 1.1 use Gtk (on my computer of course). I know of the wishlist thing, but maybe you want to know of this behaviour... Regards, Nicholas P.S. I've noticed the cc ... If you want I can send my questions to the devel ml. -- (__) | Nicholas Wieland | - ------------ (oo) | nic...@ya... | - | There's no | /------\/ | Debian GNU/Linux / Mac OS X | - | place like | / | || ----------------------------- - | *GNOME(2)* | * /\---/\ ...."Have you mooed today?".... - ------------ |
From: Magnus L. H. <ma...@he...> - 2002-10-26 17:01:52
|
N. Wieland <nic...@ya...>: > > I'm using anygui from CVS on Debian SID and Gnome 2. > Here's the simple code I've tried: > > **** > > from anygui import * > > win = Window(title = "anyGUI !", > size = (600, 400)) > > editor = TextArea(size = (600, 400)) > > win.add(editor) > > app = Application() > app.add(win) > app.run() > > **** > > File "/usr/lib/python2.2/site-packages/anygui/__init__.py", line 9, > in application raise RuntimeError, 'no application exists' > RuntimeError: no application exists This error is the problem. With the current CVS version you can't create Windows unless there is an Application object in existence. Try to move app = Application() to the top of your code and see if that helps. > I've tried also import anygui as gui. > I'm just not skilled enought to understand my error, I need a hand... > Ah, with anygui 1.1 it works ! > > Thanks in advance, > Cheers, -- Magnus Lie Hetland Practical Python The Anygui Project http://hetland.org http://ppython.com http://anygui.org |
From: N. W. <nic...@ya...> - 2002-10-26 16:07:42
|
I'm using anygui from CVS on Debian SID and Gnome 2. Here's the simple code I've tried: **** from anygui import * win = Window(title = "anyGUI !", size = (600, 400)) editor = TextArea(size = (600, 400)) win.add(editor) app = Application() app.add(win) app.run() **** Traceback (most recent call last): File "any.py", line 4, in ? size = (600, 400)) File "/usr/lib/python2.2/site-packages/anygui/Windows.py", line 8, in __init__ Frame.__init__(self, *args, **kw) File "/usr/lib/python2.2/site-packages/anygui/Frames.py", line 14, in __init__ Component.__init__(self, *args, **kw) File "/usr/lib/python2.2/site-packages/anygui/Components.py", line 30, in __init__ Proxy.__init__(self, *args, **kw) File "/usr/lib/python2.2/site-packages/anygui/Proxies.py", line 15, in __init__ self.rawDictSet('wrapper',self.wrapperFactory()) File "/usr/lib/python2.2/site-packages/anygui/Windows.py", line 12, in wrapperFactory return backendModule().WindowWrapper(self) File "/usr/lib/python2.2/site-packages/anygui/backends/tkgui.py", line 589, in __init__ ComponentWrapper.__init__(self, proxy) File "/usr/lib/python2.2/site-packages/anygui/backends/tkgui.py", line 50, in __init__ AbstractWrapper.__init__(self, *args, **kwds) File "/usr/lib/python2.2/site-packages/anygui/Wrappers.py", line 84, in __init__ application().manage(self) File "/usr/lib/python2.2/site-packages/anygui/__init__.py", line 9, in application raise RuntimeError, 'no application exists' RuntimeError: no application exists **** I've tried also import anygui as gui. I'm just not skilled enought to understand my error, I need a hand... Ah, with anygui 1.1 it works ! Thanks in advance, Cheers, -- (__) | Nicholas Wieland | - ------------ (oo) | nic...@ya... | - | There's no | /------\/ | Debian GNU/Linux / Mac OS X | - | place like | / | || ----------------------------- - | *GNOME(2)* | * /\---/\ ...."Have you mooed today?".... - ------------ |
From: Magnus L. H. <ma...@he...> - 2002-09-11 06:09:03
|
Jim Beckstrom <jrb...@vo...>: > > > I downloaded v 0.1.1, to install on SuSE 7.2, Python 2.0. and > put it in the same directory as qt.py(o), > /usr/lib/python2.0/site-packages > Following the tar command, when I run python setup.py install, I > get: > > error in setup script: invalid distribution option > 'platforms' [snip] It seems maybe you have an old version of distutils. Also, Anygui requires Python 2.1 (see FAQ). Hopefully upgrading will fix the problem. Not sure what else might be wrong. -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Jim B. <jrb...@vo...> - 2002-09-11 04:18:20
|
I downloaded v 0.1.1, to install on SuSE 7.2, Python 2.0. and put it in the same directory as qt.py(o), /usr/lib/python2.0/site-packages Following the tar command, when I run python setup.py install, I get: error in setup script: invalid distribution option 'platforms' I still got directories anygui-0.1.1/lib/anygui, so I tried the export PYTHONPATH=$PYTHONPATH:<directory path, both ../lib and ../lib/anygui>, then running python to test its availability, the "from anygui import *" results in: ImportError: No module named anygui. What am I missing? Thanks, Jim Beckstrom Ann Arbor, Mich. |
From: Stephane J. <ak...@vi...> - 2002-08-04 05:05:23
|
after reading the anygui snippet in the python cookbook I thought that anygui could be for me, yet one question linguers : what happens if I make an app, then use freeze to distribute it? clients that have a python installation should not have to much trouble but, the ones that don't? and if I like the look and feel on say wx and QT can I limit it to those two? stephane |
From: Magnus L. H. <ma...@he...> - 2002-05-07 06:32:12
|
terry <tg...@ci...>: > > > FWIW - M$ uses TreeView. That at least adds some length and > description to a tree standing alone.... Hm. That's a possibility. After all, with "Tree" I associate the abstract structure itself -- while TreeView could be a "physical" GUI component. One drawback is that it alludes to the "view" part of the "model-view-controller" triple, while it would actually be a controller as well. Hm. We've got ListBox -- how about TreeBox? Unconventional name, I guess... > terry -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: terry <tg...@ci...> - 2002-05-06 19:39:46
|
FWIW - M$ uses TreeView. That at least adds some length and description to a tree standing alone.... terry |
From: Magnus L. H. <ma...@he...> - 2002-05-03 20:10:29
|
Since the pace of the development in the last few months haven't been quite as frenetic as it was before christmas, there was no release in April, as originally planned. There may be an alpha out in May (but don't hold your breath ;). I've updated the schedule on the website which now says that release 0.2 will be during the early summer of 2002, and release 0.3 will be during late summer. I think we should be able to do that -- the 0.2 architecture is starting to work properly now, after all. So, please be patient -- it will hopefully be worth it. And, by the way: The current CVS release isn't very usable, but that was planned from the beginning (i.e. a major rewrite between 0.1 and 0.2). For future releases, I'll try to ensure that there is a stable branch with a functioning version of the package. -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Magnus L. H. <ma...@he...> - 2002-04-02 18:36:22
|
terry <tg...@ci...>: > > > Hello, > > In the type of business applications I usually develop, I have > need to open an application (not a standard dialog type) window > which the user must deal with before continuing with the main > window. I'm used to dealing with this in VB/Access by simply > stating that the second window is modal and the first window > becomes 'dead' to the user. > > I've been playing around with AnyGUI using threads and forking, > but have not come across any mechanism to accomplish this other > than to disable all of the controls on the first window. I've > also noticed that many of the X programs I use don't seem to > implement this concept even when I think it might be a reasonable > approach to control the application. > > How should (will) I handle this using AnyGUI? I hadn't thought about implementing this, but it seems it might be useful. It may be that it would require some serious hacking in some of the backends (if they don't support this sort of thing)... Anyway, if we do implement it, I think perhaps using the "enabled" attribute of the given window might be a natural way of doing it. I.e. new_win = Window(title='dialogish window thingy') old_win.enabled = 0 app.add(new_win) And then set old_win.enabled = 1 in the code dealing with the new window. (Of course some utility class or something could be created to deal with the normal case of "modal windows" here, perhaps.) I can't guarantee that this will be done in release 0.2, though (and maybe not even 0.3) since I haven't looked into how hard it would be to implement in the various backends. What you could do while working with 0.1 (which doesn't have anything like this) is to create some central mechanism for all your event handlers (i.e. an instance with lots of event-handling methods). This mechanism could then be told which windows were allowed to perform actions and which weren't -- or something. (Not ideal, certainly...) Anyway, I'll add this to the TODO list :) > Thanks, > > terry -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: terry <tg...@ci...> - 2002-04-01 23:07:51
|
Hello, In the type of business applications I usually develop, I have need to open an application (not a standard dialog type) window which the user must deal with before continuing with the main window. I'm used to dealing with this in VB/Access by simply stating that the second window is modal and the first window becomes 'dead' to the user. I've been playing around with AnyGUI using threads and forking, but have not come across any mechanism to accomplish this other than to disable all of the controls on the first window. I've also noticed that many of the X programs I use don't seem to implement this concept even when I think it might be a reasonable approach to control the application. How should (will) I handle this using AnyGUI? Thanks, terry |
From: Magnus L. H. <ma...@he...> - 2002-03-21 02:06:38
|
I've added a binary installer and two RPMs to release 0.1.1. I guess it wasn't really necessary to include both a noarch rpm and a src rpm, but what the heck... ;) I have tested the binary installer, but not the rpms. Please report any problems you might have with them. -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Alejandro <ale...@gm...> - 2002-02-19 19:42:10
|
From: Magnus L. H. <ma...@he...> - 2002-02-19 08:04:42
|
Aljosa Mohorovic <ma...@ya...>: > > i use linux, python 2.2, anygui 0.1.1., gtk backend i need to set > handler for button named "btn_quit" to close current window/app/? > i do "link(btn_quit, quit_anyapp)". i don't know what to write for > "def quit_anyapp" to close this app. how do i do this, what is to be > written? Ah. I see. I'm not sure how well this is supported at the moment, actually... But try to use the destroy() method of the window. That will close and deallocate the window (and remove it from the application). Actually, app.remove(win) ought to work as well (and is perhaps a more natural reverse of the app.add(win)). -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Aljosa M. <ma...@ya...> - 2002-02-18 21:59:59
|
i use linux, python 2.2, anygui 0.1.1., gtk backend i need to set handler for button named "btn_quit" to close current window/app/? i do "link(btn_quit, quit_anyapp)". i don't know what to write for "def quit_anyapp" to close this app. how do i do this, what is to be written? > Date: Mon, 18 Feb 2002 00:13:31 +0100 > From: Magnus Lie Hetland <ma...@he...> > To: any...@li... > Subject: Re: [Anygui-users] app.run - how to end it? > > Aljosa Mohorovic <ma...@ya...>: > > > > when i do all the stuff from tutorial it works, but how can i kill my > > anygui app? > > It should just be a matter of closing all the windows (in version 0.1, > at least -- this may change in 0.2). > > Which operating system are you running, and which backend are you > using? (The backend can be found by adding "print backend()" to your > program.) |
From: Magnus L. H. <ma...@he...> - 2002-02-17 23:13:41
|
Aljosa Mohorovic <ma...@ya...>: > > when i do all the stuff from tutorial it works, but how can i kill my > anygui app? It should just be a matter of closing all the windows (in version 0.1, at least -- this may change in 0.2). Which operating system are you running, and which backend are you using? (The backend can be found by adding "print backend()" to your program.) -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Aljosa M. <ma...@ya...> - 2002-02-17 19:46:33
|
when i do all the stuff from tutorial it works, but how can i kill my anygui app? |
From: <ite...@fr...> - 2002-02-14 03:59:07
|
ICAKWyDBpjKx4iDB37G5IMf2wfYgwd+xub7uICYgSVQgtb+9wyCxs8CwsPrBpCC/rLz2u/0gvLG5 3yBdIAoKwd+xuSC/5LPnvLogwaS6ziDIxL/4wLi3ziDHwbfQxry+7r3DvbrF2yjB1im0wiDB37G5 IL3Jvue068fQsbO/zSDH1LKyIMHfsblJVMD8ua6woSCw+sGkwLsguPDB/cfVtM+02S4gCiAKu+f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yDB37G5IL3Jvue/obytIMDOw7WxucGmsPjH18C4t84gsc2xuQogCrmu wMfDsyAJCgktIMfBt9DGvL7uvcO9usXbKMHWKSC8rb/vvcMgvK3DyrG4ILytw8q1vyAxNTU0LTEg KLDmwd+69LX5M8P+KSAKCQkowPzIrSA6IDAyLTM0NzMtMzkxMCwgxtG9uiA6IDAyLTM0NzMtMzk5 MCwgyKjG5MDMwfY6IHd3dy5mcm9udGllci5jby5rcikKCS0gwd+xub3Jvue068fQsbMgOiC9yb7n vcMgtOu1v7G4IL+sx9W3ziA1NMijIL3Jvue068fQsbMgv9y758OzCgkJKMD8yK0gOiAwMjQtODg1 MC02NjA3LCDG0b26IDogMDI0LTg4NTItMzM2MykgCgktIMHWw9Y6x8G30Ma8vu69w726xdsowdYp ICDB1rD8OiDB37G5IL3Jvue068fQsbMgICAKCS0gyMS/+Dogwd+xuSDBpLrOseKw/Ci/5LfJvLop ICjB1inEt8bbvbqz3SB3d3cuY2FtcHVzLmNvLmtyICAKIAogCg== |
From: Magnus L. H. <ma...@he...> - 2002-02-09 09:29:30
|
Stephen Boulet <st...@th...>: > [...] > > Magnus, but it _does_ seem to work, at least on windows. Each time I try it, > I get a different window (the little tk decoration in the window bar, etc.) I see. But if you import a backend, you won't get the functions defined in the anygui/__init__.py, right? (anygui/backends/__init__.py doesn't import that stuff.) So to get things working properly, you'd have to import anygui separately, which will foul up things like backend()... Anyway, the import part will probably be rewritten/fixed up quite a bit in 0.2. -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Stephen B. <st...@th...> - 2002-02-08 14:50:52
|
On Friday 08 February 2002 01:45 am, you wrote: > Boulet Stephen-CSB046 <Ste...@mo...>: > > Is the anygui.backend() function supposed to report all available > > backends or just a default one? > > > > I have tk, wx, and msw available, and msw is the only one reported > > reported (anygui 0.1; python 2.2). > > Hi! > > The backend function simply tells you which backend is currently in > use. msw is the default whenever it is available. If you want > something else, use ANYGUI_WISHLIST. > > The way you're doing things in the code example won't really work. Magnus, but it _does_ seem to work, at least on windows. Each time I try it, I get a different window (the little tk decoration in the window bar, etc.) On linux, I get: 'import site' failed; use -v for traceback Traceback (most recent call last): File "<stdin>", line 8, in ? ImportError: No module named anygui.backends.tkgui ___________ Stephen From here to there and there to here, funny things are everywhere. -- Dr Seuss > Importing the backend directly is necessary to tell wrappers (like > py2exe) which modules they need to include, but won't override the > automatic backend selection (unfortunately). To do that, you'll have > to set ANYGUI_WISHLIST (as an environment variable) to the backend you > wish to use. This is considered a flaw (noted briefly in KNOWN_BUGS) > and will be fixed in release 0.2, where you won't need environment > variables at all. > > > Thanks. > > > > -- Stephen |
From: Terry <tg...@ci...> - 2002-02-08 14:22:02
|
> How odd... And you're sure you used 2.1? (That they weren't installed > in parallell, and the 2.0 version was used instead?) At this point in my knowledge level I can't be certain, however I got thousands of mail messages from a cron type program in which python was complaining about a depreciated function. These went away after I reinstalled 2.0 via yast. (I'm using several machines, all SuSE 7.2) > Have you tried to just start the interactive interpreter (in 2.1) and > import weakref? It works for me... Did exactly that. The version number reported was 2.1.1 just as what I installed, but no weakref. I'll go throught it again to check.... > What do you mean? It will move along, yes -- but that might mean some > re-work, since the API might change still (as the warning in the > documentation says)... No extreme changes, but changes nonetheless. > (Of course we're happy to help you fix things related to these > changes, though :) I knew that, I've been lurking on the developer list for a few months. Thanks, Terry |
From: Magnus L. H. <ma...@he...> - 2002-02-08 08:41:21
|
Already a bug has surfaced... In the released version 0.1, the real backend-list was commented out and a shorter one was used. This was a remnant from the beta release. It has been fixed, and the correct version has been released as 0.1.1. -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Magnus L. H. <ma...@he...> - 2002-02-08 08:06:15
|
Terry <tg...@ci...>: > > > > > Yep. You don't have the module named weakref, as the error says. > > You should upgrade to Python 2.1 (as pointed out by the FAQ at > > anygui.org/faq). > > I first installed Python 2.1.1 from an rpm at Python.org that I had > previously downloaded. Got exactly the same 'weakref' error as with > the 2.0 that came with SuSE 7.2. How odd... And you're sure you used 2.1? (That they weren't installed in parallell, and the 2.0 version was used instead?) Have you tried to just start the interactive interpreter (in 2.1) and import weakref? It works for me... > Undaunted, I got Python 2.2 and installed it - and the error went > away. :-) That's nice :) > (Using the just released > AnyGUI 0.1!) I don't know why since all the docs say weakref is in > 2.1, but maybe the FAQ should read 2.2? Hm. We have (for now) decided to support 2.1, so if that's not working I'd consider it a problem... On the other hand, only supporting 2.2 would give us lots of neat opportunities in other areas ;) (Not really an option for a while, though, I think.) > I'm a newbe to Python (but have been programming since ENIAC II times), > so bear with me. I'm starting a medium sized business app development > (Python, Postgres, AnyGUI), and am hoping that AnyGUI will move along > enough to keep me from too much re-work. What do you mean? It will move along, yes -- but that might mean some re-work, since the API might change still (as the warning in the documentation says)... No extreme changes, but changes nonetheless. (Of course we're happy to help you fix things related to these changes, though :) > I'll just be building > prototype screens for a while, but I will be 'user-developer' testing > AnyGUI quite a lot. Very good! We need testers/users to make things more stable. > I would like to put in a small request for some mega-widgets - Combo > Box and Notebook are the most prominent by far as they are heavily used > in business apps. I could deal with only a Tkinter backend for 3-6 > months.... We'll get combo box and notebook, and mega-widgets. They're in the TODO file (found in the distribution). But first we need to re-implement a big chunk of the internals -- adding features before we've done that will only mean re-adding them afterwards... But by release 0.2 (and certainly 0.3) Anygui will be much more complete than it is now. (0.1 is more of a prototype/proof-of-concept.) > Thanks, > > Terry -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Magnus L. H. <ma...@he...> - 2002-02-08 07:45:48
|
Boulet Stephen-CSB046 <Ste...@mo...>: > > Is the anygui.backend() function supposed to report all available backends or just a default one? > > I have tk, wx, and msw available, and msw is the only one reported reported (anygui 0.1; python 2.2). Hi! The backend function simply tells you which backend is currently in use. msw is the default whenever it is available. If you want something else, use ANYGUI_WISHLIST. The way you're doing things in the code example won't really work. Importing the backend directly is necessary to tell wrappers (like py2exe) which modules they need to include, but won't override the automatic backend selection (unfortunately). To do that, you'll have to set ANYGUI_WISHLIST (as an environment variable) to the backend you wish to use. This is considered a flaw (noted briefly in KNOWN_BUGS) and will be fixed in release 0.2, where you won't need environment variables at all. > Thanks. > > -- Stephen -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |