[python] Bez -i to funguje

zu1234 zu1234 na seznam.cz
Pátek Èerven 5 11:33:13 CEST 2009


Proè máte na prvním øádku obou souborù text zaèivající: <div class= a 
tak dále?
A na konci text </div>

Myslím ¾e bude dìlat paseku.


Vyzkou¹el, opravil a posílám zpìt
ZU
------------- dal¹í èást ---------------
A friend of mine|jeden m??j p?™?­tel
Amr.White has called|byl tu jak??si pan White
Be taken aback|b??t p?™ekvapen,zmaten
Abandon all hope|vzd??t se ve??ker?? naděje
Abandon oneself to|odd??vat se Äemu
Abide by a promise|dodr??et slib
Be able|moci
Able-bodied|siln??,tělesně schopn??
Abominable weather|ohavn?? poÄas?­
Abortive attempt|nezda?™en?? pokus
Abound in st|opl??vat Ä?­m
Walk about the town|chodit po městě
I haven't any money about me|nem??m u sebe pen?­ze
There is nothing strange about it|na tom nen?­ nic divn??ho
Talk about st|hovo?™it o Äem
What is it all about?|co to m?? v??echno znamenat?,oÄ jde?
Be about to|chystat se
The book is above me|kniha je pro mne nesrozumiteln??
As was stated above|jak bylo uvedeno d?™?­ve
Travel abroad|cestovat do ciziny
Visitors from abroad|zahraniÄn?­ n??v??tÄ›vn?­ci
Absence from school|nep?™?­tomnost ve ??kole
Absent from school|nep?™?­tomn?? ve ??kole
Be absorbed in|b??t upout??n Ä?­m,pono?™en do
Abstain from st|zdr??ovat se Äeho
Food in abundance|hojnost j?­dla
Abundance of food|nadbytek j?­dla
Be abundant|hojnÄ› se vyskytovat
Abundant in|bohat?? na
Alternating current|st?™?­dav?? proud
Accede to|souhlasit s
By accident|n??hodou
Have an accident|m?­t nehodu
Meet with an accident|m?­t nehodu
Accompanied luggage|spoluzavazadlo
He was accorded a warm welcome|dostalo se mu v?™el??ho uv?­t??n?­
Give an account of|popsat,vyl?­Äit
Take st into account|vz?­t v ??vahu co
On account of|pro,kv??li
On my account|kv??li mnÄ›
On no account|v ????dn??m p?™?­padÄ›
Account for|vysvětlit
Accustom oneself to|zvyknout si na
Be accustomed to|b??t zvykl?? na
Have an headache|m?­t bolen?­ hlavy
My head aches|bol?­ mÄ› hlava
Achieve one's aim|dos??hnout sv??ho c?­le
Acknowledge one's mistake|uznat svou chybu
Be acquainted with|b??t obezn??men s
Acquiesce in st|d??t svolen?­ k Äemu
Acquit of st|zprostit Äeho
Acquit oneself of st|zprostit se Äeho
Acquit oneself well like|osvÄ›dÄit se, jako
Across the river|p?™es ?™eku
Across the street|na druh?? stranÄ› ulice
Across from|naproti Äemu
Act as an interpreter|dÄ›lat tlumoÄn?­ka
On active service|v Äinn?? slu??bÄ›
Adhere to|lpět na
Adjust oneself to the circumstances|p?™izp??sobit se okolnostem
Be admitted into a school|b??t p?™ijat do ??koly
Much ado about nothing|mnoho povyku pro nic
Adult education college|st?™edn?­ ??kola pro pracuj?­c?­
Advanced in years|v pokroÄil??m vÄ›ku
Take advantage of st|vyu???­t Äeho
Take advantage of sb|o??idit někoho
Take sb's advice|d??t si poradit od koho
Follow sb's advice|d??t si poradit od koho
On the advice of sb|na Ä?­ radu
A good word of advice|dobr?? rada
You would be well advised to|doporuÄuje se, abyste
>From afar|zdaleka
The answer is affirmative|odpovÄ›Ä je kladn??
I can't afford it|nemohu si to dovolit
Be afraid of|b??t se Äeho
Be afraid for|b??t se o
I'm afraid|bohu??el
After dark|po setmÄ›n?­
Shut the door after you|zav?™i za sebou dve?™e
This afternoon|dnes odpoledne
On Sunday afternoon|v neděli odpoledne
Now and again|obÄas
Time and again|znovu a znovu
As much,many again|dvakr??t tolik
Lean against the wall|op?­rat se o zeÄ
At your age|v tv??m věku
Come of age|dos??hnout zletilosti
I haven't seen you for ages|neviděl jsem tě ani nepamatuji
A boy aged ten|chlapec star?? deset let
An aged man|star?? mu??
The aged and infirm|sta?™?­ a nemocn?­
Two days ago|p?™ed dvÄ›ma dny
Agree to,with st|souhlasit s
Agree about st|souhlasit v Äem
Agree with sb|souhlasit s k??m
Agree on|dohodnout se na
Coffee does not agree with me|k??va mi nedÄ›l?? dob?™e
Agreable to st|srozumÄ›n?? s Ä?­m
I'm agreeable|jsem pro
Come to an agreement with sb|dohodnout se na
Go ahead?|jen raÄte?
Aim at|zamÄ›?™it se na,usilovat o
Aim high|m?­?™it vysoko
In the open air|pod ??ir??m nebem
Walk on air|chodit jako ve snu
Be on the air|vys?­lat,b??t vys?­l??n rozhlasem
Give oneself on|dÄ›lat se d??le??it??m,p?™edv??dÄ›t se
With arms akimbo|ruce v bok
On the alert|ve st?™ehu
Alight from the bus|vystoupit z autobusu
Be alive to st|uvědomovat si co
All day long|cel?? den
Beyond all doubt|nad ve??kerou pochybnost
Why help him, of all people?|proÄ pom??hat pr??vÄ› jemu?
All of us|my v??ichni
Not at all|nen?­ zaÄ
There is to it|v tom to vÄ›z?­
For all I know|co j?? v?­m
Once for all|jednou pro v??dy
All along|od zaÄ??tku
All at once|najednou
I'm all for it|jsem pro
All over the world|po cel??m světě
All right|v po?™??dku
All the better|t?­m l??pe
Allocate a flat to sb|p?™idÄ›lit byt komu
Allow for|vz?­t v ??vahu,poÄ?­tat s
Allow of|p?™ipou??tÄ›t
Be allowed to|smět
Along the street|po ulici
Along here|tudy,d??le
Come along|tak pojÄ
Along with|spolu
Get along with|vych??zet s dob?™e,??patnÄ›
Be along|p?™ij?­t,p?™ijet
Be aloof from st|stranit se Äeho
Have the shops closed already?|to u?? maj?­ obchody zav?™eno?
A.m.|r??no,dopoledne
Amazed at st|udiven,u??asl?? nad
Make amends to sb for st|nahradit komu co
Come amiss|p?™ij?­t nevhod
Take st amiss|m?­t co za zl??
There is st amiss|tady něco neklape
Who among you|kdo z v??s
Be anong the best|pat?™it k nejlep???­mu
Among other things|mezi jin??m
They had a pound among them|měli dohromady libru
It amounts to the same thing|to je vlastnÄ› tot????
Bread and butter|chl??b s m??slem
Nice and warm|hezky teplo
Try and come|sna?? se p?™ij?­t
Angry young man|rozzloben?? mlad?? mu??
Get angry|rozzlobit se
Ankle socks|kr??tk?? pono??ky
Ankle-deep in the mud|po kotn?­ky v bl??tÄ›
Be annoyed with sb,at st|zlobit se na
Another time|jindy
Another cup of tea|je??tÄ› jeden ????lek Äaje
Another two hours|je??tÄ› dal???­ dvÄ› hodiny
Answer the door|j?­t otev?™?­t
Answer back|odmlouvat
Answerable to sb for st|zodpovÄ›dn?? komu zaÄ
Antique shop|obchod se staro??itnostmi
Anxiety for|starost o
Anxieti about|starost ohlednÄ›
Anxieti for|touha po
Anxieti to|touha aby
Anxious about,for one's health|znepokojen?? o sv?? zdrav?­
Be anxious|velmi si p?™??t,sna??it se
Anxious to please|vyhovět
At any rate|alespo?ˆ
In any case|v ka??d??m p?™?­padÄ›
If it's any good|stoj?­-li to v??bec za nÄ›co
Not in any way|nijak
Not anybody|nikdo
Not anything|nic
Anything but|v??echno, jenom ne
Not anywhere|nikde,nikam
Apart from|nehledÄ› k
Tel,know apart|rozeznat
Set apart|vyhradit
Take apart|rozebrat
Joking apart|??erty stranou
Apartment house|n??jemn?­ d??m,penzi??n
Apologize to sb for st|omluvit se komu zaÄ
Apology to sb for st|omluva komu zaÄ
Appeal to sb for st|prosba ke komu oÄ
In apple-pie order|ve vzorn??m po?™??dku
Apply a compress|p?™ilo??it obklad
Apprehensive of|ob??vaj?­c?­ se Äeho
Apprehensive for|ob??vaj?­c?­ se Äeho
Apprehensive that|ob??vaj?­c?­ se, ??e
Easy,difficult to approach|snadno,tÄ›??ko p?™?­stupn??
Approach to work|postoj k pr??ci
Approval to st|souhlas s Ä?­m
Apt At st|schopn?? k Äemu
We are apt to forget|r??di zapom?­n??me
Aptitude for|talent k
Arabic numerals|arabsk?? Ä?­slice
With open arms|s otev?™enou n??ruÄ?­
Keep sb at arm's length|dr??et si koho od těla
He's been around a lot|viděl kus světa,vyzn?? se
Arouse from sleep|vzbudit ze sp??nku
Arouse sb's suspicion|vzbudit nÄ›Ä?­ podez?™en?­
Arouse sb's anger|vzbudit nÄ›Ä?­ hnÄ›v
Arrival to the town|p?™?­jezd,p?™?­chod do mÄ›sta
Arrive home|p?™ijet,p?™ij?­t dom??
As usual|jako obyÄejnÄ›
As a rule|zpravidla
Twice as large|dvakr??t tak velk??
Just as good|stejnÄ› tak dobr??
As I said before|jak u?? jsem ?™ekl
As it were|jaksi
As it is|stejnÄ›,beztoho
Old as he is|i kdy?? je star??
As far as Prague|a?? do Prahy
As for|co se t??Äe,pokud jde o
As good as|skoro
As if,as though|jako kdyby
As long as|pokud
As soon as|jakmile
As to|co se t??Äe
As well|rovnÄ›?? tak??
As well as|jako?? i,a tak??
As yet|a?? dosud
Ascent of mountain|v??stup na horu
Be ashamed of|stydět se za
Be ashamed of yourself|styÄ se
Lay aside|odlo??it
Put aside|rezervovat
Step aside|ustoupit stranou
Ask the way|pt??t se na ceestu
Ask a question|pt??t se na co
Ask after sb,sb's health|pt??t se na koho,na Ä?­ zdrav?­
Ask for sb|pt??t se po kom
Ask for help|????dat o pomoc
Ask for a favour|????dat o laskavost
Ask to dinner|pozvat na oběd
You have asked for it|s??m jsi to chtěl
Ask me another|to se mÄ› moc pt????
Look askance at|d?­vat se podez?­ravÄ› na
Be asleep|sp??t
fall asleep|usnout
Two aspirins for a headache|dva pr????ky proti bolen?­ hlavy
Assist sb|pomoci komu
Be of any assistance to sb|b??t n??pomocn?? komu
On the assumption|za p?™edpokladu, ??e
Be astonished to see|s ????asem vidět
Be astonished at the news|b??t udiven zpr??vou
To my astonishment|k m??mu ????asu
Go astray|zabloudit,ztratit se
Lead astray|sv??st ze spr??vn?? cesty
At the door|u dve?™?­
At the theatre|v divadle
At the corner|na rohu
At a lesson|p?™i hodinÄ›
At table|p?™i j?­dle
At the station|na n??dra???­
At home|doma
At night|v noci
At three o.clock|ve t?™i hodiny
At that time|v t?? dobÄ›,tehdy
At the moment|v tomto okam??iku,teÄ
At any moment|kdykoli
At the age of six|v ??esti letech
At December 31|k 31 prosinci
At work,v zamÄ›stn??n?­
At peace|v m?­ru
At 10 crowns a piece|po deseti korun??ch za kus
What are you at now?|Ä?­m se teÄ zab??v??te?
Be hard at it|pilnÄ› pracovat
Be at one|b??t zajedno
At full speed|plnou rychlost?­
At that|a k tomu je??tÄ›
Atone for st|odÄinit co
Attach much importance to st|p?™ikl??dat velkou d??le??itost k Äemu
Attainone's object|dos??hnout sv??ho c?­le
Attempt at|pokus o
Attend to|vÄ›novat se komu,Äemu
Have you been attended to?|byl jste u?? obslou??en?
Attend school|nav??těvovat ??kolu
Attend sb,on sb|l??Äit,o??et?™ovat koho
Attendance at school,school attendance|n??v??těva ??koly
Medical attendance|l??ka?™sk?? p??Äe
Pay attention to st|vÄ›novat pozornost Äemu
Call sb's attention to st|upozornit koho naÄ
Power of attorney|pln?? moc
Avail oneself of st|pou???­t Äeho
Further information is available on request|dal???­ informace lze obdr??et na po????d??n?­
On an average|pr??měrně
Avert an accident|odvr??tit ne??tÄ›st?­
Awake to st|uvědomit si co
Be awake to st|b??t si vÄ›dom Äeho
Be awave of st,that|b??t si vÄ›dom Äeho,??e
He was grumbling away|po?™??d mu nebylo nÄ›co po chuti
Awkward door to open|dve?™e, kter?? se ??patnÄ› otv?­raj?­
Go awry|zhatit se
Bable a secret|vyzvonit tajemstv?­
Behind one's back|komu za z??dy
Turn one's back on|obr??tit se z??dy k
The of one's hand|h?™bet ruky
Stand back|ustupte
There and back|tam a zpět
Be,come back|vr??tit se
Put it back|dejte to zp??tky
20 years back|p?™ed 20 lety
Go back upon one's word|nedodr??et slovo
Back in 1900|ji?? v roce 1900
Call sb bad names|nad??vat komu
A bad mistake|v????n?? chyba
A bad headache|siln?? bolen?­ hlavy
That's too bad|to je zl??
>From bad to worse|od dev?­ti k pÄ›ti
Feel bad|c?­tit se ??patnÄ›
It baffles all description|to se ned?? popsat
As if he had just come out of a band|jako ze ??katulky
Bang one'shead|uhodit se do hlavy
Bang the door|pr??sknout dve?™mi
Bash the typewriter|bu??it do psac?­ho stroje
Not an eyelid|ani nemrknout
Have,take a bath|vykoupat se
Bath-tub|vana
Bay window|ark???™ov?? okno
Keep at bay|dr??et v ??achu

How much is it?|kolik to stoj?­?
I am to see him tomorrow|m??m ho z?­tra nav??t?­vit
It was not to be found|nedalo se to naj?­t
Don't be long|nebuÄ tam dlouho
Has the postman been yet?|u?? tady byl listono???
I haven't a bean|nem??m ani krejcar
I can't bear him|nemohu ho vyst??t
The road bears to the left|cesta zah??b?? doleva
Bear on st|t??kat se Äeho
Take one's bearings|orientovat se
Beckon sb,to sb|pokynout komu
Go to bed|j?­t sp??t
Be in bed|le??et v posteli
Take to one's bed|z??stat v posteli
Make the bed|ustlat
Have a bee in a bonnet|b??t posedl?? my??lenkou
The day before yesterday|p?™edevÄ?­rem
Before my eyes|p?™ed m??ma oÄima
I beg your pardon|promi?ˆte
I beg to differ|jsem bohu??el jin??ho n??zoru
At the beginning of|na zaÄ??tku Äeho
In the beginning|zpoÄ??tku
>From Beginning to end|od zaÄ??tku do konce
Behave oneself|chovat se slu??nÄ›
Behind your back|za tv??mi z??dy
He is behind the times|zaspal dobu
Belief in|v?­ra v
The best of my belief|podle m??ho nejlep???­ho svÄ›dom?­
Believe it or not|vÄ›?™te tomu nebo ne
Below zero|pod nulou
It is below my dignity|je to pod moji d??stojnost
As stated below|jak je uvedeno n?­??e
It is beneath my dignity|to je pod moji d??stojnost
¨
Sit beside me|sedni si vedle mÄ›
This is beside the point|to nepat?™?­ k vÄ›ci
Be beside oneself with joy|b??t bez sebe radost?­
No better than|o nic lep???­ ne??
Get the better of|p?™emoci,zvl??dnout
Know better|m?­t lep???­ rozum
For better or worse|v dobr??m i ve zl??m
He is better today|je mu dnes l??pe
You had better go|bylo by l??pe, kdybys ??el,mÄ›l bys radÄ›ji j?­t
There is no love lost bettween them|nemaj?­ se r??di
We had five pounds between us|měli jsme dohromady pět liber
That's going beyond a joke|tady p?™est??vaj?­ ??erty
It'squite beyond me|to mi v??bec nejde na rozum
The big toe|palec u nohy
He is bound up in his work|je ??plnÄ› zabr??n do pr??ce
Bite one'slips|kousat se do rt??
Bite in the leg|kousnout do nohy
Have a little bite of st;sněz si něco mal??ho
Bituminous coal;Äern?? uhl?­
Be black and blue;b??t sam?? mod?™ina
In black and white;Äern?? na b?­l??m
Give sb a black look;zle se na koho pod?­vat
Dressed in black;obleÄen?? v Äern??m
Black out;zatemnit
Who is to blame?;Ä?­ je to vina?
Bleed to death;vykrv??cet
Bless me!,bless my soul!;m??j ty bo??e!
Be blessed with good health;tÄ›??it se dobr??mu zdrav?­
Blind in one eye;slep?? na jedno oko
Blind to sb's faults;slep?? k nÄ›Ä?­m chyb??m
The roses are in full bloom now|r????e jsou teÄ v pln??m kvÄ›tu
Be in blossom|kv??st
Blow one's nose|vysmrkat se
Blue with cold|modr?? zimou
Things are looking blue|vypad?? to bledÄ›
Blush for,with shame|Äervenat se hanbou
Boast of,about st|chlubit se Ä?­m
Burn one's boats|sp??lit za sebou mosty,jezdit na loÄce
Have a bone to pick with sb|m?­t nevy?™?­zen?? ??Äet s k??m
Make no bones about st|neot??let s Ä?­m
Be born|narodit se
Both of us,we both|my oba
It is both good and cheap;je to nejen dobr??, ale tak?? levn??
At bottom;v podstatÄ›
>From the bottom of my heart;z hloubi srdce
Get to the bottom of st;dostat se na kloub Äemu
At the bottom of the page;dole na str??nce
Bounce a ball;hr??t si s m?­Äem
Advance by leaps and bounds;postupovat m?­lov??mi kroky
Where are you bound for?;kam m??te nam?­?™eno?
He is bound to come;urÄitÄ› p?™ijde
Brag about st;chv??stat se Ä?­m
Rack one's brain;l??mat si hlavu
Turn sb's brain;popl??st hlavu komu
Get down to brass tacks;p?™ej?­t k vÄ›ci
A breach of the peace|poru??en?­ ve?™ejn??ho po?™??dku
A breach of promise|nedodr??en?­ slibu man??elsk??ho
Escape by a hair's breadth|uniknout o vlas
Breake into pieces|rozb?­t se na kusy
Breake to one's word|nedodr??et slovo
Breake to one's journey|p?™eru??it cestu
The day breaks|rozedn?­v?? se
Breake the bad news to sb|??etrně sdělit ??patnou zpr??vu komu
Breake away from st|zbavit se Äeho
Make a clean breast of st|otev?™enÄ› p?™iznat co
Out of breath|bez dechu
With bated breath|se zatajen??m dechem
Take breath|oddychnout si
Take a deep breath|zhluboka se nadechnout
Take sb's breath away|vz?­t komu dech,p?™ekvapit
Not a breath of suspicion|ani st?­n podez?™en?­
Drop a brick|dopustit se netaktnosti
Go on a brigade|jet na brig??du
Bring to an end|ukonÄit
Bring up-to-date|zmodernizovat
Bring round to|p?™iv??st k sobÄ›,vzk?™?­sit
Broad daylight|jasn?? den
In broad outline|velkorysy, tolerantn?­
Broad views|tolerantn?­ n??zory
Broil in the sun|pra??it se na slunci
Be broke|b??t bez hal???™e
A new broom sweeps clean|nov?? ko??tÄ› dob?™e mete
Give the clothes a good brush|dob?™e vykart??Äovat ??aty
He won's budge an inch|neustoup?­ o krok
His eyes bulged|oÄi mu vyl??zaly z d??lk??
Bump one's head against,on st|narazit naÄ
Burst into tears|propuknout v pl??Ä
Burst out laughing|d??t se do sm?­chu
Go by bus|jet autobusem
Miss the bus|zme??kat autobus,prop??st p?™?­le??itost
Let's down to business|p?™istupme k vÄ›ci
Busy oneself with|zamÄ›stn??vat se Ä?­m
Excuse my butting in|promi?ˆte, ??e v??m sk??Äu do ?™eÄi
My ears buzz|huÄ?­ mi v u???­ch
It must be ready by now|teÄ u?? je to jistÄ› hotov??
Know by the name|zn??t jm??nem
Let's call it day|pro dne??ek konÄ?­me
What is it called in English?|jak se to ?™ekne anglicky?
He was out when I called|byl pryÄ, kdy?? jsem tam p?™i??el
Call sb up|telefonovat komu
Give sb a call|zavolat komu
Pay a call on sb|p?™ij?­t ke komu na kr??tkou n??v??tÄ›vu
Go camping|jet t??bo?™it
I can hear you|j?? tÄ› sly???­m
I cannot but|mus?­m
Capable for st|schopn?? Äeho
Take care that|d??t pozor, aby
Take care of|postarat se o
I don't care for soup|j?? pol??vku nerad
She doesn't a hang,pin|je j?­ to ??plnÄ› jedno
Be careful not to|dej pozor, abys ne
Be careful about,while ...ing|dej si pozor p?™i
Be careful of|db??t na
Carry oneself|n??st se
Carry one's head|dr??et hlavu
In case|pro p?™?­pad,??e
In case of fire|pro p?™?­pad po????ru
In any case|v ka??d??m p?™?­padÄ›,rozhodnÄ›
In no case|za ????dn??ch okolnost?­
If that is the case|je-li tomu tak
Just in case|pro ka??d?? p?™?­pad
As the case may be|pop?™?­padÄ›,eventu??lnÄ›
Cash on delivery|na dob?­rku
Be short of cash|m?­t m??lo penÄ›z
It's raining cats and dogs|lije jako z konve
Catch me riding a bus!|j?? a jet autobusem!
------------- dal¹í èást ---------------
# -*- coding: utf8 -*-

import sys
import wx


class MainFrame(wx.Frame):
    u"""Hlavn?­ okno aplikace."""

    def __init__(self, title, application):
        u"""Vybudov??n?­ a prvn?­ aktualizace obsahu hlavn?­ho okna."""

        # Inicializujeme b??zovou t?™?­du a uschov??me parametry.
        x, y, w, h = wx.GetClientDisplayRect()
        pos = (x + 50, y + 50)
        size = (w - 100, h - 100)

        wx.Frame.__init__(self, None, -1, title, pos, size)

        self.application = application

        # Hlavn?­ okno bude rozdÄ›leno na horn?­ panel pro ?™??dky needitovateln??ho
        # textu a doln?­ panel pro vstup z kl??vesnice.
        splitter = wx.SplitterWindow(self)

        self.topPanel = wx.TextCtrl(splitter, -1,
                   style = wx.TE_MULTILINE | wx.TE_RICH2 | wx.TE_READONLY )
        self.bottomPanel = wx.TextCtrl(splitter, -1,
                                    style = wx.TE_MULTILINE 
                                            | wx.TE_RICH2
                                            | wx.TE_PROCESS_ENTER)

        splitter.SplitHorizontally(self.topPanel, self.bottomPanel, -100)

        # Nav????eme stisk Enter ve spodn?­m panelu na o??et?™uj?­c?­ metodu.
        self.Bind(wx.EVT_TEXT_ENTER, self.OnEnter, self.bottomPanel)

    
    def displayTopText(self):
        self.topPanel.SetValue(self.getMultilineText())


    def getMultilineText(self):
        # Spoj?­me cel?? seznam ?™??dk?? do v?­ce?™??dkov??ho ?™etÄ›zce. Vynech??me
        # ale prvn?­ ?™??dek, kter?? se zobrazuje v z??hlav?­ okna. ZnaÄky |
        # nahrad?­me ÄitelnÄ›j???­m st?™edn?­kem a mezerou.
        text = u''.join(self.application.lines[1:])
        return text.replace(u'|', u'; ')


    def OnEnter(self, event):
        # Z?­sk??me zadan?? ?™??dek a p?™ipoj?­me jej na konec seznamu ?™??dk??.
        text = self.bottomPanel.GetValue()
        self.application.lines.append(text.rstrip() + u'\r\n')
        
        # Zobraz?­me aktualizovan?? obsah. Obsah spodn?­ho panelu vyma??eme.
        self.displayTopText()
        self.bottomPanel.SetValue(u'')

        # Zjednodu??en?? implementace -- poka??d?? zap?­??eme nov?? obsah do
        # souboru.
        import codecs
        f = codecs.open(self.application.filename, 'w', 'utf-8-sig')
        f.write(u''.join(self.application.lines))
        f.close()
        

class App(wx.App):
    """Application class."""

    def OnInit(self):
        # Vytvo?™?­me hlavn?­ okno vycentrovan?? na st?™ed obrazovky. 
        title = u'Slovn?­k' 
        self.filename = 'database.txt' 
        self.frame = MainFrame(title, self)
        self.frame.Center()
        self.frame.Show()
        self.SetTopWindow(self.frame)

        # NaÄteme obsah slovn?­ku -- zat?­m jen jednodu??e -- a pou??ijeme jej
        # jako obsah horn?­ho panelu. Tenhle k??d bude pozdÄ›ji um?­stÄ›n jinde. 
        import codecs
        f = codecs.open(self.filename, 'r', 'utf-8-sig')
        self.lines = f.readlines()
        f.close()
        
        # Prvn?­ ?™??dek z datab??ze slovn?­ku pou??ijeme jako titulek okna.
        self.frame.SetTitle(self.lines[0])

        # Ostatn?­ ?™??dky zaÄneme zobrazovat jako text horn?­ho okna.
        self.frame.displayTopText()

        return True


#---------------------------------------------------------------------

def main():
    app = App(False)
    app.MainLoop()


if __name__ == '__main__':
    main()


sys.exit


Dal¹í informace o konferenci Python