Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Gabriel B.
2006/2/25, Sybren Stuvel [EMAIL PROTECTED]: Lad enlightened us with: Body='Rídících Márinka a Školák Kája Marík'.decode('utf8').encode('windows-1250')# I use the text written in my editor with utf-8 coding, so first I decode and then encode to windows-1250 what does a string became when

warning for google api users

2006-02-21 Thread Gabriel B.
the index and or it explode in some point or they simply kill it after some time). and they obviously don't run that process very often. Now... anyone has some implementation of pygoogle.py that scraps the regular html service instead of using SOAP? :) Gabriel B. -- http://mail.python.org/mailman

scope acting weird

2005-05-01 Thread Gabriel B.
i have the following code: Ui.py: import Tkinter as Tk import UiMainScreen UiMainScreen.py: class UiMainScreen( Tk.Frame ): and i get the following error: File UiMainScreen.py, line 1, in ? class UiMainScreen(Tk.Frame): NameError: name 'Tk' is not defined isn't Tk supposed to be

Re: workaround for generating gui tools

2005-04-11 Thread Gabriel B.
On Apr 10, 2005 11:08 PM, Bengt Richter [EMAIL PROTECTED] wrote: On Sat, 9 Apr 2005 19:22:16 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: open('mywidget_v2.txt','w').write(repr(mywidget.textview) How about a pickle hook? You'd just unpack the pickle data, and end up with a pointer to a

simple input that can understand special keys?

2005-02-26 Thread Gabriel B.
i'm writting an application that will use Tinker in a newer future. Now it's console only. I simply ommit some data on the display, print() some other and go on. The problem is that i can't test the actions tiggered by special keys, like Page Up/Down or the F1...12 Right now i'm using raw_input()

DB Schema

2005-02-18 Thread Gabriel B.
I started to use dbschema.com but it has some big flaws (mainly regarding keys and mysql) and besides it's being in java (wich i don't like to code at all) it's closed source. I'm considering starting a new GPL one in python, so, i ask if you people already know a project like that. Thanks,

tk resource file for geometry?

2005-02-12 Thread Gabriel B.
i'm using almost every widget property from my pyTk programs in the form of resources, like: self.tk.option_add ( *InputClass*background, White ) In the widget creation i have only the Class and the Command attribute, but i'm having to add some tk options to the geometry method, in the case,

Why Tk treat F10, F11, F12 diferently from F1...F9?

2005-02-12 Thread Gabriel B.
This is completely odd to me... # Bind F1...F12 to TabKeys self.tk.event_add( 'TabKeys', # keys used to switch between the tabs 'KeyPress-F1','KeyPress-F2','KeyPress-F3','KeyPress-F4','KeyPress-F5', 'KeyPress-F6','KeyPress-F7','KeyPress-F8','KeyPress-F9','KeyPress-F10',

Re: Why Tk treat F10, F11, F12 diferently from F1...F9?

2005-02-12 Thread Gabriel B.
On Sat, 12 Feb 2005 19:44:25 -0600, Jeff Epler [EMAIL PROTECTED] wrote: The reason that F10 does nothing is because there is already a binding on all for F10. [...] If you want to get rid of this binding, you would do it with something like w.bind_all(F10, ) for some widget w. That was

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
users. For example, from their FAQ, it seems that no precompiled binaries will be provided. Support for comercial compilers will not be built in, only for gcc (through Cygwin?). Isn't this just the same thing with a different spin. There was always an available distribution for linux

trolltech comitment (was:Big development in the GUI realm)

2005-02-08 Thread Gabriel B.
On Mon, 07 Feb 2005 20:56:44 -0800, Courageous [EMAIL PROTECTED] wrote: Follow the copyright holder's wishes. That's fair. After all, it's free, so they're doing you a damn big favor. I'm terrible sorry to extend this topic even furter, but it's silly, not to say dull to think like that. in

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
However, imagine simple situation: 1. I write proprietary program with open plugin api. I even make the api itself public domain. Program works by itself, does not contain any GPL-ed code. No need to continue. You write something that uses a plugin, Eolas sues you. Don't have to mind about

Re: tk global bindings

2005-02-08 Thread Gabriel B.
Oh and you of course __must__ look at the (recently updated!) New Mexico Tech tkinter document at: http://infohost.nmt.edu/tcc/help/pubs/tkinter.pdf See page 75 and follwing for more info on keyboard bindings... Thanks, i was looking down that doc because the first thing i looked into it

tcl/tk naming scheme vs python's

2005-02-08 Thread Gabriel B.
I got my self writting nested objects to hold Tk references, then i realizes that i was working in python and not tcl, so i switched to flat vars... and in no time i was using more then 7 words separated by captalization in the names... i was able to rethink my scheme to use 5... no less. i'm i

tk global bindings

2005-01-29 Thread Gabriel B.
I'm starting to write a POS application UI's module. There's no mouse, just a bunch of global shortcuts. the problem is that TK doesn't have global shortcuts! Is there a work-around or i will have to attach 80 or so bindings for every input element? Thanks, Gabriel --

naive doc question

2005-01-29 Thread Gabriel B.
Is it just me that can't find a full reference in the docs? I wanted a list of all the methods of dict for example... where can i find it? Thanks, and sorry if this question is just dumb, i really can't find it -- http://mail.python.org/mailman/listinfo/python-list

is this use of lists normal?

2005-01-24 Thread Gabriel B.
I just sent an email asking for hints on how to import data into a python program As i said earlier i'm really new to python and besides being confortable with the syntax, i'm not sure if i'm on the right track with the logic I'm asking for hints again here at the list because i think i'm

python newt under win32

2005-01-23 Thread Gabriel B.
Anyone has any info if there's something similar to Newt lib for win32? Thanks Gabriel -- http://mail.python.org/mailman/listinfo/python-list