In my application, I want to be able to display pre-defined paragraphs in a multi-line textctrl
I assume that the text will be saved in a text file and I want to access it by giving it the key; For example, there may be several paragraphs related to the text lion saved under Key 101, while under the main 482, there may be many paragraphs related to food for the sea lions.
Can someone suggest that a suitable method is the text in this form?
Using sqlite3, I believe what it is necessary for you, the fully developed database path Here's an example from the command line to create a database without the hassle of going down, populating it with a key and printing some text. Coding in Python for Sqlite3 is simple and well documented.
$ sqlite3 text.db SQLite version 3.8.2 2013-12-06 14:53:30 Enter ".help" for instructions Enter SQL ""; SQLite & gt; Create the table "txt" ("txt_id" inkender primary key attribute tag unique unique 1, "the_text" text); SQLite & gt; Insert in Txt ("txt_id", "the_text") value (1, "a large part of the text"); SQLite & gt; Txt ("txt_id", "the_text") Price (2), "Elephant Families Elephantidee's large mammals and order are included in proboscida. Two species are traditionally recognized, African elephants (Loxodonta Afrina) and Asian Elephants (Elix Maximus) , Although some evidence suggests that African Bush elephants and African forest elephants are different species (respectively L. Africa and L. Cyclotis). Elephants are from Sahara Africa, Elephants are the only surviving family, respectively, others, now extinct, respectively, include gigantic and matodes in families, male is the largest creature of living beings in African elephants and 4 meters (13 feet). ) And weigh up to 7,000 kg (15,000 pounds). Elephants have many special characteristics, the most notable of which are In which there is a trunk or trunk for a long time, which is used for many purposes, especially breathing, water lifting and rotating objects. Their persecutors grow in teeth, which can serve as arms and Objects can work as a tool to grow and excavate. Elephants' large ear flaps help in controlling their body temperature, legs like their pillars can take their great weight. African elephants have large ears and concave backs while Asian elephants have small ears and convex or level Back.); Esquite & gt; Select * to txt; 1; A large part of the lesson 2) Hedgehog family's large mammals and orders are traditionally recognized for two species, African elephants (Loxondata africana) and Asian elephant (Elephous Maximus), although some evidence suggests that African Bush Elephants and African Forests Elephants are different species (L. africana and L. cyclotis respectively). Elephants are spread across sub-Saharan Africa, South Asia and Southeast Asia. Elfantidae is the only living family, which is provocious, others, now extinct, include large and mastordones in the families of the order. Men are the largest animals of living beings in African elephants and can reach a height of 4 meters (13 feet) and weigh 7,000 kg (15,000 pounds). All elephants have many distinctive features, the most notable of which, NK or Prostessis is used for many purposes, especially breathtaking, water lifting and moving objects in their insuras tuus, which can be used as weapons Can work and work as objects and tools to excavate. Elephants' large ear flaps help in controlling their body temperature Feet like their pillars can take their great weight; African elephants have large ears and concave backs while Asian elephants have short ears and convex or level backs. . SQLite & gt;
No comments:
Post a Comment