Vous avez cherché: flipper (Anglais - Grec)

Anglais

Traduction

flipper

Traduction

Grec

Traduction
Traduction

Traduisez instantanément des textes, des documents et des voix avec Lara

Traduire maintenant

Contributions humaines

Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.

Ajouter une traduction

Anglais

Grec

Infos

Anglais

flipper

Grec

πτερύγιο

Dernière mise à jour : 2014-11-14
Fréquence d'utilisation : 6
Qualité :

Référence: IATE

Anglais

cant flipper

Grec

αρπάγη

Dernière mise à jour : 2014-11-14
Fréquence d'utilisation : 3
Qualité :

Référence: IATE

Anglais

frogmen's flipper

Grec

βατραχοπέδιλο

Dernière mise à jour : 2014-11-14
Fréquence d'utilisation : 5
Qualité :

Référence: IATE

Anglais

#!/usr/bin/gjsconst gtk = imports.gi.gtk;const lang = imports.lang;const textviewexample = new lang.class ({ name: 'textview example', // create the application itself _init: function () { this.application = new gtk.application ({ application_id: 'org.example.jstextview' }); // connect 'activate' and 'startup' signals to the callback functions this.application.connect('activate', lang.bind(this, this._onactivate)); this.application.connect('startup', lang.bind(this, this._onstartup)); }, // callback function for 'activate' signal presents windows when active _onactivate: function () { this._window.present (); }, // callback function for 'startup' signal builds the ui _onstartup: function () { this._buildui (); }, // build the application's ui _buildui: function () { // create the application window this._window = new gtk.applicationwindow ({ application: this.application, window_position: gtk.windowposition.center, title: \"talk to a penguin\", default_height: 400, default_width: 440, border_width: 20 }); // create a label for the penguin to talk to you this._penguin = new gtk.label ({ height_request: 180, width_request: 400, label: \"squaaaak?\", wrap: true }); // create a textview for you to talk to the penguin this.buffer = new gtk.textbuffer(); this._textview = new gtk.textview ({ buffer: this.buffer, editable: true, wrap_mode: gtk.wrapmode.word }); // create a \"scrolled window\" to put your textview in so it will scroll this._scrolled = new gtk.scrolledwindow ({ hscrollbar_policy: gtk.policytype.automatic, vscrollbar_policy: gtk.policytype.automatic, shadow_type: gtk.shadowtype.etched_in, height_request: 180, width_request: 400, }); // put the textview into the scrolled window this._scrolled.add_with_viewport (this._textview); // create a grid to organize them in this._grid = new gtk.grid ({ halign: gtk.align.center, valign: gtk.align.center }); // put the label and textview in the grid one on top of the other this._grid.attach (this._penguin, 0, 0, 1, 1); this._grid.attach (this._scrolled, 0, 1, 1, 1); // create a button to send your message to the penguin this._send = new gtk.button ({ halign: gtk.align.end, margin_top: 20, label: \"send\" }); this._send.connect ('clicked', lang.bind (this, this._chat)); // create a grid that will have the other grid on top and the button on bottom this._maingrid = new gtk.grid ({ halign: gtk.align.center, valign: gtk.align.center }); // add the other grid and the button to the main grid this._maingrid.attach (this._grid, 0, 0, 1, 1); this._maingrid.attach (this._send, 0, 1, 1, 1); // attach the main grid to the window this._window.add (this._maingrid); // show the window and all child widgets this._window.show_all(); }, _chat: function () { // create a random number to determine what the penguin says this.number = math.floor ((math.random() * 3) + 1); // did you actually say anything? if (this.buffer.text) { // did you mention fish? if (this.buffer.text.match (/fish/gi)) { // have the penguin squaak about fish if (this.number == 1) this._penguin.set_label (\"fish!\"); else if (this.number == 2) this._penguin.set_label (\"fish fish fish fish. fish!\"); else this._penguin.set_label (\"fish? fish fish fish. fish fish. fish!\"); } // i guess you didn't mention fish else { // have the penguin talk about penguinny stuff if (this.number == 1) this._penguin.set_label (\"squaak!\"); else if (this.number == 2) this._penguin.set_label (\"ork ork ork ork squaak. squaak squaak! *waves flippers*\"); else this._penguin.set_label (\"ork ork ork ork ork?\"); } } // clear the buffer this.buffer.text = \"\"; // give focus back to the textview so you don't have to click it again this._textview.has_focus = true; }});// run the applicationlet app = new textviewexample ();app.application.run (argv);

Grec

#!/usr/bin/gjsconst gtk = imports.gi.gtk;const lang = imports.lang;const textviewexample = new lang.class ({ name: 'textview example', // create the application itself _init: function () { this.application = new gtk.application ({ application_id: 'org.example.jstextview' }); // connect 'activate' and 'startup' signals to the callback functions this.application.connect('activate', lang.bind(this, this._onactivate)); this.application.connect('startup', lang.bind(this, this._onstartup)); }, // callback function for 'activate' signal presents windows when active _onactivate: function () { this._window.present (); }, // callback function for 'startup' signal builds the ui _onstartup: function () { this._buildui (); }, // build the application's ui _buildui: function () { // create the application window this._window = new gtk.applicationwindow ({ application: this.application, window_position: gtk.windowposition.center, title: \"talk to a penguin\", default_height: 400, default_width: 440, border_width: 20 }); // create a label for the penguin to talk to you this._penguin = new gtk.label ({ height_request: 180, width_request: 400, label: \"squaaaak?\", wrap: true }); // create a textview for you to talk to the penguin this.buffer = new gtk.textbuffer(); this._textview = new gtk.textview ({ buffer: this.buffer, editable: true, wrap_mode: gtk.wrapmode.word }); // create a \"scrolled window\" to put your textview in so it will scroll this._scrolled = new gtk.scrolledwindow ({ hscrollbar_policy: gtk.policytype.automatic, vscrollbar_policy: gtk.policytype.automatic, shadow_type: gtk.shadowtype.etched_in, height_request: 180, width_request: 400, }); // put the textview into the scrolled window this._scrolled.add_with_viewport (this._textview); // create a grid to organize them in this._grid = new gtk.grid ({ halign: gtk.align.center, valign: gtk.align.center }); // put the label and textview in the grid one on top of the other this._grid.attach (this._penguin, 0, 0, 1, 1); this._grid.attach (this._scrolled, 0, 1, 1, 1); // create a button to send your message to the penguin this._send = new gtk.button ({ halign: gtk.align.end, margin_top: 20, label: \"send\" }); this._send.connect ('clicked', lang.bind (this, this._chat)); // create a grid that will have the other grid on top and the button on bottom this._maingrid = new gtk.grid ({ halign: gtk.align.center, valign: gtk.align.center }); // add the other grid and the button to the main grid this._maingrid.attach (this._grid, 0, 0, 1, 1); this._maingrid.attach (this._send, 0, 1, 1, 1); // attach the main grid to the window this._window.add (this._maingrid); // show the window and all child widgets this._window.show_all(); }, _chat: function () { // create a random number to determine what the penguin says this.number = math.floor ((math.random() * 3) + 1); // did you actually say anything? if (this.buffer.text) { // did you mention fish? if (this.buffer.text.match (/fish/gi)) { // have the penguin squaak about fish if (this.number == 1) this._penguin.set_label (\"fish!\"); else if (this.number == 2) this._penguin.set_label (\"fish fish fish fish. fish!\"); else this._penguin.set_label (\"fish? fish fish fish. fish fish. fish!\"); } // i guess you didn't mention fish else { // have the penguin talk about penguinny stuff if (this.number == 1) this._penguin.set_label (\"squaak!\"); else if (this.number == 2) this._penguin.set_label (\"ork ork ork ork squaak. squaak squaak! *waves flippers*\"); else this._penguin.set_label (\"ork ork ork ork ork?\"); } } // clear the buffer this.buffer.text = \"\"; // give focus back to the textview so you don't have to click it again this._textview.has_focus = true; }});// run the applicationlet app = new textviewexample ();app.application.run (argv);

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Référence: IATE
Avertissement : un formatage HTML invisible est présent

Obtenez une traduction de meilleure qualité grâce aux
10,388,471,977 contributions humaines

Les utilisateurs demandent maintenant de l'aide :



Nous utilisons des cookies pour améliorer votre expérience utilisateur sur notre site. En poursuivant votre navigation, vous déclarez accepter leur utilisation. En savoir plus. OK