Window creation: Difference between revisions
Content deleted Content added
mNo edit summary |
revert spam |
||
Line 1: | Line 1: | ||
{{task}} |
|||
[http://beatpoetsa.ifrance.com/description/macchina-zucchero.htm macchina zucchero filato] [http://lethalga.ifrance.com/topic/canon-power/ canon power shot s2] [http://liubash.ifrance.com/new/wisl-.htm wisl 66 (it)] [http://jene7777777.ifrance.com/new/seghetto-alternativo.htm seghetto alternativo] [http://seachildelf.ifrance.com/resources/ray-ban/ ray ban predator] [http://seachildelf.ifrance.com/resources/zenaide/ zenaide] [http://belikan.ifrance.com/library/battglia-navale.htm battglia navale] [http://lethalga.ifrance.com/topic/premiere/ premiere 6 5] [http://seachildelf.ifrance.com/resources/durst/ durst] [http://animaetrix00.ifrance.com/content/fatboyslim/ fatboyslim] [http://cikumuffin.ifrance.com/topic/punky-brewster/ punky brewster] [http://makkiesan.ifrance.com/ultras-salernitana.htm ultras salernitana] [http://shmarodral.ifrance.com/text/etrade.htm etrade] [http://cikumuffin.ifrance.com/topic/cooler-master/ cooler master vortex] [http://makkiesan.ifrance.com/irlanda-vacanze.htm irlanda vacanze] [http://shmarodral.ifrance.com/text/edoardo.htm edoardo] [http://liubash.ifrance.com/new/los-padres.htm los padres] [http://makkiesan.ifrance.com/cucaracha.htm cucaracha] [http://listsobacka.ifrance.com/small/foxtrot.htm foxtrot] [http://firejedi.ifrance.com/new/rot/ rot] [http://animaetrix00.ifrance.com/content/tre-amici/ tre amici un matrimonio e un funerale] [http://seachildelf.ifrance.com/resources/cantante-q/ cantante q s] [http://jazzyjoe.ifrance.com/pedofilia/ pedofilia] [http://thecakeblog.ifrance.com/articles/proton-metal/ proton metal mr12] [http://feelosof.ifrance.com/description/mario-azzoni/ mario azzoni] [http://thecakeblog.ifrance.com/articles/you-re/ you re a god] [http://jazzyjoe.ifrance.com/ventole-coolermaster/ ventole coolermaster] [http://infunt.ifrance.com/articles/linea-/ linea 77 subsonica 66] [http://emrinalexander.ifrance.com/styles/profumi-ferrari.htm profumi ferrari] [http://ohmygoshalix.ifrance.com/blog/tc-.htm tc 1100 tablet] [http://jazzyjoe.ifrance.com/x-files/ x files stagione 4 vol 04] [http://makkiesan.ifrance.com/giocattoli-eroti.htm giocattoli eroti] [http://thecakeblog.ifrance.com/articles/hilltop-hoods/ hilltop hoods] [http://shmarodral.ifrance.com/text/capperi-di.htm capperi di pantelleria] [http://seachildelf.ifrance.com/resources/paris-hilton/ paris hilton xx] [http://infunt.ifrance.com/articles/la-mano/ la mano] [http://listsobacka.ifrance.com/small/volkswagen-passat.htm volkswagen passat highline 2002] [http://lethalga.ifrance.com/topic/michele-paulicelli/ michele paulicelli] [http://jene7777777.ifrance.com/new/toner-xerox.htm toner xerox p8ex] [http://jojorock.ifrance.com/articles/viaggio-in/ viaggio in spagna] [http://listsobacka.ifrance.com/small/reduced-size.htm reduced size multi media card] [http://jazzyjoe.ifrance.com/canzoni-cd/ canzoni cd m2o] [http://listsobacka.ifrance.com/small/occulto.htm occulto] [http://makkiesan.ifrance.com/classifica-pop.htm classifica pop] [http://liubash.ifrance.com/new/hyundai-hqlwr.htm hyundai hql260wr lcdtv] [http://thecakeblog.ifrance.com/articles/canon-g/ canon g] [http://liubash.ifrance.com/new/l-uomo.htm l uomo di metallo] [http://shmarodral.ifrance.com/text/bilance-wunder.htm bilance wunder] [http://eccoblackfin.ifrance.com/html/voli-punta.htm voli punta cana] [http://listsobacka.ifrance.com/small/intimo-sportivo.htm intimo sportivo] [http://jazzyjoe.ifrance.com/zx-r/ zx 6r kawasaki] [http://jene7777777.ifrance.com/new/shiny-disco.htm shiny disco ball] [http://jojorock.ifrance.com/articles/where-is/ where is the love video] [http://emrinalexander.ifrance.com/styles/punta-trapano.htm punta trapano] [http://chrystiala.ifrance.com/library/il-vento.htm il vento del nord] [http://listsobacka.ifrance.com/small/linkin-park.htm linkin park some where i belong] [http://animaetrix00.ifrance.com/content/ebony-tit/ ebony tit] [http://jene7777777.ifrance.com/new/vespucci-modelli.htm vespucci modelli navali] [http://makkiesan.ifrance.com/minihifi-aiwa.htm minihifi aiwa] [http://belikan.ifrance.com/library/the-watchmaker.htm the watchmaker] [http://animaetrix00.ifrance.com/content/le-calde/ le calde notti di parigi] [http://beatpoetsa.ifrance.com/description/pulman-roma.htm pulman roma ancona] [http://shmarodral.ifrance.com/text/l-apres.htm l apres midi] [http://infunt.ifrance.com/articles/amplificatore-marantz/ amplificatore marantz] [http://belikan.ifrance.com/library/batteria-x.htm batteria x60] [http://feelosof.ifrance.com/description/prese/ prese] [http://beatpoetsa.ifrance.com/description/shake-zucchero.htm shake zucchero] [http://listsobacka.ifrance.com/small/ichthyomys.htm ichthyomys] [http://shmarodral.ifrance.com/text/le-spie.htm le spie uccidono in silenzio] [http://seachildelf.ifrance.com/resources/strike-up/ strike up the band] [http://pouringsunny.ifrance.com/description/lettori-dvd/ lettori dvd r r e vhs] [http://shotlandetz.ifrance.com/blog/cinguetti/ cinguetti] [http://feelosof.ifrance.com/description/chitarre-e/ chitarre e bassi] [http://jazzyjoe.ifrance.com/ver-videos/ ver videos de perreo] [http://infunt.ifrance.com/articles/occult-to/ occult to be thrashed by occult] [http://makkiesan.ifrance.com/tommy-and.htm tommy and gerry] [http://feelosof.ifrance.com/description/amplificatori-home/ amplificatori home theatre yamaha] [http://seachildelf.ifrance.com/resources/david-copperfield/ david copperfield vol 03] [http://pouringsunny.ifrance.com/description/flli-romano/ flli romano] [http://emrinalexander.ifrance.com/styles/pornostar-gellerie.htm pornostar gellerie foto] [http://pouringsunny.ifrance.com/description/problemi-lancia/ problemi lancia phedra] [http://infunt.ifrance.com/articles/concessionarie-renault/ concessionarie renault veneto] [http://ohmygoshalix.ifrance.com/blog/rosalinda-celentano.htm rosalinda celentano nuda] [http://jene7777777.ifrance.com/new/monitor-sony.htm monitor sony hs95p] [http://pouringsunny.ifrance.com/description/ebayeur-pro/ ebayeur pro] [http://seachildelf.ifrance.com/resources/alien-la/ alien la clonazione] [http://emrinalexander.ifrance.com/styles/cherokee-.htm cherokee 2 5 td sport] [http://animaetrix00.ifrance.com/content/sexpatatina/ sexpatatina] [http://emrinalexander.ifrance.com/styles/xp-web.htm xp web buttons] [http://belikan.ifrance.com/library/impresa-costruzione.htm impresa costruzione finanziamento] [http://listsobacka.ifrance.com/small/usb-carica.htm usb carica] [http://emrinalexander.ifrance.com/styles/dvd-remote.htm dvd remote controller ps2] [http://thecakeblog.ifrance.com/articles/porsche-cabrio/ porsche cabrio 993] [http://seachildelf.ifrance.com/resources/toto-peppino/ toto peppino e la malafemmena] [http://infunt.ifrance.com/articles/lidia-troia/ lidia troia] [http://shotlandetz.ifrance.com/blog/chiavi-in/ chiavi in mano] [http://listsobacka.ifrance.com/small/escuchar-la.htm escuchar la hormiguita] [http://belikan.ifrance.com/library/age-of.htm age of imperius] [http://belikan.ifrance.com/library/samsung-ml.htm samsung ml1710 toner] [http://liubash.ifrance.com/new/baci-lesbo.htm baci lesbo famosi] [http://jazzyjoe.ifrance.com/philip-monteiro/ philip monteiro] [http://lethalga.ifrance.com/topic/hossam/ hossam] [http://cikumuffin.ifrance.com/topic/new-beetle/ new beetle roma] [http://jazzyjoe.ifrance.com/orrore-armi/ orrore armi e azione] [http://firejedi.ifrance.com/new/trust-md/ trust md 41000] [http://emrinalexander.ifrance.com/styles/www-la.htm www la republica romana it] [http://jazzyjoe.ifrance.com/porno-di/ porno di gruppo gratuito] [http://eccoblackfin.ifrance.com/html/np-fp.htm np fp70] [http://seachildelf.ifrance.com/resources/puzzle-bambino/ puzzle bambino] [http://listsobacka.ifrance.com/small/la-sera.htm la sera fiesolana] [http://jene7777777.ifrance.com/new/riccardo-schicchi.htm riccardo schicchi] [http://lethalga.ifrance.com/topic/foto-fatte/ foto fatte di nascosto] [http://feelosof.ifrance.com/description/corse-/ corse machine] [http://jojorock.ifrance.com/articles/auricolari-jack/ auricolari jack 2 5] [http://listsobacka.ifrance.com/small/kawasaki-mx.htm kawasaki mx] [http://chrystiala.ifrance.com/library/samsung-condizionatori.htm samsung condizionatori 12000 btu] [http://ohmygoshalix.ifrance.com/blog/motomondiale-misano.htm motomondiale misano] [http://infunt.ifrance.com/articles/terza-rivoluzione/ terza rivoluzione industriale] [http://belikan.ifrance.com/library/rowan-atkinson.htm rowan atkinson] [http://infunt.ifrance.com/articles/telecamere-panasonic/ telecamere panasonic] [http://cikumuffin.ifrance.com/topic/uccidete-il/ uccidete il padrino] [http://beatpoetsa.ifrance.com/description/anamorphic.htm anamorphic] [http://belikan.ifrance.com/library/hindi-hits.htm hindi hits] [http://liubash.ifrance.com/new/tema-divina.htm tema divina commedia] [http://makkiesan.ifrance.com/prontuario-per.htm prontuario per la circolazione stradale] [http://feelosof.ifrance.com/description/iomega-pen/ iomega pen drive 1gb] [http://thecakeblog.ifrance.com/articles/chb-khalid/ chb khalid] [http://infunt.ifrance.com/articles/il-mondo/ il mondo che non] [http://eccoblackfin.ifrance.com/html/modem-edge.htm modem edge] [http://listsobacka.ifrance.com/small/turn-around.htm turn around] [http://belikan.ifrance.com/library/eppure-bertoli.htm eppure bertoli] [http://shmarodral.ifrance.com/text/senso-di.htm senso di vuoto panico] [http://shmarodral.ifrance.com/text/punta-arabi.htm punta arabi song] [http://ohmygoshalix.ifrance.com/blog/alfa-romeo.htm alfa romeo 147 anno 2002] [http://shmarodral.ifrance.com/text/supereva-chat.htm supereva chat] [http://jene7777777.ifrance.com/new/rocky-leggend.htm rocky leggend] [http://makkiesan.ifrance.com/freds.htm freds] [http://listsobacka.ifrance.com/small/lettore-dvd.htm lettore dvd disney] [http://ohmygoshalix.ifrance.com/blog/messanger.htm messanger 7 5] [http://listsobacka.ifrance.com/small/see-it.htm see it in a boy] [http://jazzyjoe.ifrance.com/samo/ samo] [http://shmarodral.ifrance.com/text/televisori-lcd.htm televisori lcd 12v] [http://listsobacka.ifrance.com/small/ennvision.htm ennvision 3000] [http://cikumuffin.ifrance.com/topic/annuncio-affitti/ annuncio affitti livorno] [http://jene7777777.ifrance.com/new/analogue-paganini.htm analogue paganini] [http://lethalga.ifrance.com/topic/bofrost/ bofrost] [http://liubash.ifrance.com/new/trucchi-playstation.htm trucchi playstation] [http://listsobacka.ifrance.com/small/bicicle.htm bicicle] [http://cikumuffin.ifrance.com/topic/berto-pisano/ berto pisano] [http://belikan.ifrance.com/library/copia-x.htm copia x singoli] [http://eccoblackfin.ifrance.com/html/musica-moderna.htm musica moderna] [http://makkiesan.ifrance.com/tv-lcd.htm tv lcd 36] [http://eccoblackfin.ifrance.com/html/assorbente-macerata.htm assorbente macerata] [http://firejedi.ifrance.com/new/jaz-in/ jaz in ti] [http://jene7777777.ifrance.com/new/impianti-hi.htm impianti hi fi sony] [http://jene7777777.ifrance.com/new/honda-cbr.htm honda cbr 600 rr 2005] [http://shmarodral.ifrance.com/text/dimmi-chi.htm dimmi chi dorme accanto a me] [http://jazzyjoe.ifrance.com/multipla-/ multipla 2 serie] [http://pouringsunny.ifrance.com/description/oriental-hentai/ oriental hentai] [http://beatpoetsa.ifrance.com/description/express-sta.htm express sta] [http://feelosof.ifrance.com/description/film-ose/ film ose] [http://jojorock.ifrance.com/articles/squilli-di/ squilli di sangue] [http://listsobacka.ifrance.com/small/i-quattro.htm i quattro del drago nero] [http://emrinalexander.ifrance.com/styles/commande-conquest.htm commande conquest] [http://seachildelf.ifrance.com/resources/ma-cosa/ ma cosa vuoi che sia] [http://cikumuffin.ifrance.com/topic/veterinai-catania/ veterinai catania] [http://animaetrix00.ifrance.com/content/toni-cetinski/ toni cetinski budi uz mene] [http://firejedi.ifrance.com/new/bt-/ bt 77 nemerix] [http://liubash.ifrance.com/new/traduzione-di.htm traduzione di din tei] [http://makkiesan.ifrance.com/resta-gianluca.htm resta gianluca capozzi] [http://animaetrix00.ifrance.com/content/alignment-trieste/ alignment trieste] [http://thecakeblog.ifrance.com/articles/www-autostradale/ www autostradale it] [http://jojorock.ifrance.com/articles/patenta-d/ patenta d] [http://infunt.ifrance.com/articles/uccisione-ostaggio/ uccisione ostaggio iglese] [http://shotlandetz.ifrance.com/blog/crea-e/ crea e colora facce e corpi] [http://makkiesan.ifrance.com/famiglia.htm famiglia] [http://firejedi.ifrance.com/new/cabo-san/ cabo san lucas] [http://liubash.ifrance.com/new/hotel-tirrenia.htm hotel tirrenia pisa] [http://jene7777777.ifrance.com/new/pinelli.htm pinelli] [http://infunt.ifrance.com/articles/dr/ dr 4800] [http://seachildelf.ifrance.com/resources/apple-mac/ apple mac x tiger] [http://shotlandetz.ifrance.com/blog/delta-v/ delta v un estate fa] [http://lethalga.ifrance.com/topic/asciugabiancheria-zoppas/ asciugabiancheria zoppas] [http://cikumuffin.ifrance.com/topic/pendenti-rebecca/ pendenti rebecca] [http://lethalga.ifrance.com/topic/olympus-dv/ olympus dv60] [http://belikan.ifrance.com/library/gianfranco-marziano.htm gianfranco marziano] [http://infunt.ifrance.com/articles/obiettivo-minolta/ obiettivo minolta af 70 300] [http://firejedi.ifrance.com/new/r-g/ r g v] [http://shotlandetz.ifrance.com/blog/apparecchi-riscaldamento/ apparecchi riscaldamento] [http://animaetrix00.ifrance.com/content/esemi-di/ esemi di stato prove] [http://emrinalexander.ifrance.com/styles/assassino-di.htm assassino di fiducia] [http://lethalga.ifrance.com/topic/la-cosa/ la cosa leader] [http://pouringsunny.ifrance.com/description/frigo-incasso/ frigo incasso bosch] [http://lethalga.ifrance.com/topic/pigalle/ pigalle] [http://shotlandetz.ifrance.com/blog/nudo-al/ nudo al gf5] [http://jene7777777.ifrance.com/new/figa-pelosa.htm figa pelosa sfondata gratis] [http://firejedi.ifrance.com/new/piccolo-nardi/ piccolo nardi] [http://listsobacka.ifrance.com/small/fed-srl.htm fed srl] [http://infunt.ifrance.com/articles/lenti-a/ lenti a contatto giornaliere] [http://emrinalexander.ifrance.com/styles/generatore-di.htm generatore di corrente 5 kw] [http://jazzyjoe.ifrance.com/salute-donna/ salute donna di torino] [http://jazzyjoe.ifrance.com/toelettatura-animali/ toelettatura animali brascia] [http://shmarodral.ifrance.com/text/fist-of.htm fist of legend] [http://belikan.ifrance.com/library/harman-kardon.htm harman kardon sintoamplificatori] [http://shmarodral.ifrance.com/text/slick-ball.htm slick ball] [http://jojorock.ifrance.com/articles/tecnica-di/ tecnica di un crimine] [http://belikan.ifrance.com/library/liguria-alberghi.htm liguria alberghi] [http://firejedi.ifrance.com/new/hard-usb/ hard usb2] [http://firejedi.ifrance.com/new/decapitations/ decapitations] [http://chrystiala.ifrance.com/library/monitor-cristalli.htm monitor cristalli liquidi] [http://animaetrix00.ifrance.com/content/il-chiosco/ il chiosco di gelati] [http://beatpoetsa.ifrance.com/description/divina-commedia.htm divina commedia capitolo xix purgatorio] [http://jojorock.ifrance.com/articles/parole-de/ parole de sobri] [http://infunt.ifrance.com/articles/jaime-king/ jaime king] [http://chrystiala.ifrance.com/library/la-canzone.htm la canzone del dito] [http://ohmygoshalix.ifrance.com/blog/kriminal-tango.htm kriminal tango] [http://liubash.ifrance.com/new/canon-pixma.htm canon pixma pixmania] [http://belikan.ifrance.com/library/giochi-x.htm giochi x adulti] [http://shmarodral.ifrance.com/text/ransom.htm ransom] [http://chrystiala.ifrance.com/library/media-organizer.htm media organizer] [http://thecakeblog.ifrance.com/articles/ragazza-buccinasco/ ragazza buccinasco] [http://jojorock.ifrance.com/articles/porsche-/ porsche 996 carrera 4 4] [http://thecakeblog.ifrance.com/articles/poeti-dall/ poeti dall inferno] [http://emrinalexander.ifrance.com/styles/epson-erc.htm epson erc 23] [http://makkiesan.ifrance.com/i-misteri.htm i misteri delle bermude] [http://cikumuffin.ifrance.com/topic/televisori-plasma/ televisori plasma alta definizione da 42] [http://shmarodral.ifrance.com/text/fax-laser.htm fax laser canon l380] [http://thecakeblog.ifrance.com/articles/destru/ destru] [http://firejedi.ifrance.com/new/aldo-forbice/ aldo forbice] [http://cikumuffin.ifrance.com/topic/saintvincent-capo/ saintvincent capo] [http://shmarodral.ifrance.com/text/apple-mac.htm apple mac mini 1 25 ghz] [http://feelosof.ifrance.com/description/ceti/ ceti] [http://cikumuffin.ifrance.com/topic/sigma-ex/ sigma ex 17 35] [http://shmarodral.ifrance.com/text/ipod-g.htm ipod 4g] [http://cikumuffin.ifrance.com/topic/brightman/ brightman] [http://shotlandetz.ifrance.com/blog/www-doraimon/ www doraimon com] [http://liubash.ifrance.com/new/pavia-lodi.htm pavia lodi] [http://jazzyjoe.ifrance.com/notebook-/ notebook 9700 pro] [http://chrystiala.ifrance.com/library/l-arte.htm l arte del legno] [http://feelosof.ifrance.com/description/daitona/ daitona] [http://belikan.ifrance.com/library/option-trading.htm option trading] [http://pouringsunny.ifrance.com/description/geforce-schede/ geforce schede video] [http://thecakeblog.ifrance.com/articles/file-sega/ file sega] [http://animaetrix00.ifrance.com/content/replay-di/ replay di un omicidio] [http://makkiesan.ifrance.com/coppia-incontri.htm coppia incontri] [http://emrinalexander.ifrance.com/styles/hart-heinrich.htm hart heinrich e julius] [http://jazzyjoe.ifrance.com/tv-color/ tv color mivar] [http://emrinalexander.ifrance.com/styles/chat-ragazza.htm chat ragazza] [http://animaetrix00.ifrance.com/content/lettori-creative/ lettori creative] [http://jazzyjoe.ifrance.com/pista-de/ pista de reggaeton] {{task}} |
|||
==[[C]]== |
==[[C]]== |
||
Line 35: | Line 35: | ||
} |
} |
||
==[[C plus plus|C |
==[[C plus plus|C++]]== |
||
[[Category:C plus plus]] |
[[Category:C plus plus]] |
||
===[[Qt]] 4=== |
===[[Qt]] 4=== |
||
Line 58: | Line 58: | ||
[[Category:Gtk]] |
[[Category:Gtk]] |
||
'''Compiler command:''' g |
'''Compiler command:''' g++ filename.cc -o test `pkg-config --cflags --libs gtkmm-2.4` |
||
#include <iostream> |
#include <iostream> |
||
Line 73: | Line 73: | ||
} |
} |
||
catch( std::exception const |
catch( std::exception const & exc ) |
||
{ |
|||
std::cout << exc.what() << std::endl ; |
|||
exit( -1 ) ; |
|||
} |
|||
exit( 0 ) ; |
|||
} |
|||
==[[C sharp|C#]]== |
|||
[[Category:C sharp]] |
|||
'''Platform:''' [[.NET]] 1.1 (or higher) |
|||
'''Compiler:''' [[Visual C sharp|Visual C#]] 2003 |
|||
'''Using:''' [[System.Windows.Forms.dll]] |
|||
using System; |
|||
using System.Windows.Forms; |
|||
public class Window |
|||
{ |
|||
[STAThread] |
|||
static void Main() |
|||
{ |
|||
Form newForm = new Form(); |
|||
newForm.Text = "It's a new Window!"; |
|||
newForm.Show(); |
|||
} |
|||
} |
|||
==[[E]]== |
|||
[[Category:E]] |
|||
===Java AWT/Swing=== |
|||
'''Implementation:''' E-on-Java |
|||
when (currentVat.morphInto("awt")) -> { |
|||
def w := <swing:makeJFrame>("Window") |
|||
w.setContentPane(<swing:makeJLabel>("Contents")) |
|||
w.pack() |
|||
w.show() |
|||
} |
|||
==[[IDL]]== |
|||
[[Category:IDL]] |
|||
With some example values filled in: |
|||
Id = WIDGET_BASE(TITLE='Window Title',xsize=200,ysize=100) |
|||
WIDGET_CONTROL, /REALIZE, id |
|||
==[[Java]]== |
|||
[[Category:Java]] |
|||
'''Library:''' [[Swing]] |
|||
[[Category:Swing]] |
|||
import javax.swing.JFrame; |
|||
import javax.swing.WindowConstants; |
|||
public class SimpleWindow { |
|||
public static void main(String[] args) { |
|||
JFrame window = new JFrame("This is a title!"); |
|||
window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
|||
window.setSize(800, 600); |
|||
window.setVisible(true); |
|||
} |
|||
} |
|||
==[[JavaScript]]== |
|||
[[Category:JavaScript]] |
|||
window.open("webpage.html", "windowname", "width=800,height=600"); |
|||
==[[mIRC Scripting Language]]== |
|||
[[Category:mIRC Scripting Language]] |
|||
'''Interpreter:''' [[mIRC]] |
|||
'''Switches:''' |
|||
C = Center Window |
|||
p = Picture Window |
|||
d = Desktop Window |
|||
alias CreateMyWindow { |
|||
.window -Cp +d @WindowName 600 480 |
|||
} |
|||
==[[Perl]]== |
|||
[[Category:Perl]] |
|||
'''Interpreter:''' [[Perl]] 5.8.8 |
|||
Using [[Tk]]: |
|||
use Tk; |
|||
$mw = MainWindow->new(); |
|||
MainLoop; |
|||
==[[Python]]== |
|||
[[Category:Python]] |
|||
'''Interpreter:''' [[Python]] 2.4, 2.5 |
|||
===[[Tkinter]]=== |
|||
[[Category:Tkinter]] |
|||
import Tkinter |
|||
w = tkinter.Tk() |
|||
w.mainloop() |
|||
===[[wxPython]]=== |
|||
[[Category:wxPython]] |
|||
from wxPython.wx import * |
|||
class MyApp(wxApp): |
|||
def OnInit(self): |
|||
frame = wxFrame(NULL, -1, "Hello from wxPython") |
|||
frame.Show(true) |
|||
self.SetTopWindow(frame) |
|||
return true |
|||
app = MyApp(0) |
|||
app.MainLoop() |
|||
===[[Pythonwin]]=== |
|||
[[Category:Pythonwin]] |
|||
import win32ui |
|||
from pywin.mfc.dialog import Dialog |
|||
d = Dialog(win32ui.IDD_SIMPLE_INPUT) |
|||
d.CreateWindow() |
|||
===[[PyGTK]]=== |
|||
[[Category:PyGTK]] |
|||
import gtk |
|||
window = gtk.Window() |
|||
window.show() |
|||
gtk.main() |
|||
==[[Ruby]]== |
|||
[[Category:Ruby]] |
|||
'''Interpreter:''' [[Ruby]] 1.8.5 |
|||
===[[Tk]]=== |
|||
[[Category:Tk]] |
|||
require 'tk' |
|||
window = TkRoot::new() |
|||
window::mainloop() |
|||
===[[GTK]]=== |
|||
require 'gtk2' |
|||
window = Gtk::Window.new.show |
|||
Gtk.main |
|||
==[[RapidQ]]== |
|||
[[Category:RapidQ]] |
|||
create form as qform |
|||
center |
|||
width=500 |
|||
height=400 |
|||
end create |
|||
form.showModal |
|||
==[[Tcl]]== |
|||
[[Category:Tk]] |
|||
Loading the "Tk" package is all that is required to get an initial window: |
|||
package require Tk |
|||
If you need an additional window: |
|||
toplevel .top |
|||
If you are using the increasingly popular [http://www.equi4.com/tclkit.html tclkit] under MS Windows, all you have to do is associate the tcklkit with the extension ".tcl" and then create an <i>empty</i> file with the name (e.g.) <tt>nothing.tcl</tt>. Douple-clicking that will "open a window" (an empty one). |
|||
==[[Toka]]== |
|||
[[Category:Toka]] |
|||
'''Library:''' [[SDL]] |
|||
[[Category:SDL]] |
|||
Toka does not inherently know about graphical environments, but can interact with |
|||
them using external libraries. This example makes use of the [[SDL]] library bindings |
|||
included with Toka. |
|||
needs sdl |
|||
needs case |
|||
sdl_event_size malloc is-data event |
|||
800 600 sdl_setup drop |
|||
#! Process events, exiting when the window is closed |
|||
[ |
|||
event SDL_WaitEvent drop |
|||
event sdl_event_type switch |
|||
SDL_QUIT [ bye ] case |
|||
TRUE |
|||
] keep whileTrue |
|||
==[[Visual Basic .NET]]== |
|||
[[Category:Visual Basic .NET]] |
|||
Framework: [[.NET]] |
|||
Dim newForm as new Form |
|||
newForm.Text = "It's a new window" |
|||
newForm.Show() |