Hai cercato la traduzione di elif da Inglese a Greco

Contributi umani

Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.

Aggiungi una traduzione

Inglese

Greco

Informazioni

Inglese

2nd prize: elif demir (9), turkey

Greco

βραβείο: elif demir (9 ετών), Τουρκία

Ultimo aggiornamento 2017-04-26
Frequenza di utilizzo: 1
Qualità:

Inglese

others include nobel prize winner orhan pamuk and novelist elif shafak.

Greco

Μεταξύ αυτών και ο βραβευμένος με Νόμπελ Ορχάν Παμούκ καθώς επίσης η μυθιστοριογράφος Ελίφ Σαφάκ.

Ultimo aggiornamento 2016-01-20
Frequenza di utilizzo: 2
Qualità:

Inglese

elif genceli of the delft university of technology in the netherlands found the new species in a pond on the japanese island of hokkaido and in an antarctic glacier in 2007.

Greco

Ο Ελίφ Γκεντσέλι, του Πανεπιστημίου Τεχνολογίας delft στις Κάτω Χώρες, ανακάλυψε το νέο είδος σε λιμνούλα του Ιαπωνικού νησιού Χοκαΐντο και σε παγετώνα της Ανταρκτικής το 2007.

Ultimo aggiornamento 2016-01-20
Frequenza di utilizzo: 2
Qualità:

Inglese

the renowned turkish writer and publicist elif shafak and italian rai3 tv reporter giovanna botteri were co-winners of the annual award for international journalism issued by the italian media group rcs.

Greco

Η διακεκριμένη συγγραφέας και πολιτική αρθρογράφος από την Τουρκία Ελίφ Σαφάκ και η Ιταλίδα ρεπόρτερ του τηλεοπτικού σταθμού rai3, Τζιοβάνα Μποτέρι, νίκησαν από κοινού το ετήσιο βραβείο διεθνούς δημοσιογραφίας που απονέμεται από τον Ιταλικό όμιλο ΜΜΕ rcs.

Ultimo aggiornamento 2016-01-20
Frequenza di utilizzo: 2
Qualità:

Inglese

from gi.repository import gtkfrom gi.repository import gdkfrom gi.repository import giofrom gi.repository import gobjectimport sysclass mywindow(gtk.applicationwindow): def __init__(self, app): gtk.window.__init__( self, title=\"filechooserdialog example\", application=app) self.set_default_size(400, 400) # the actions for the window menu, connected to the callback functions new_action = gio.simpleaction.new(\"new\", none) new_action.connect(\"activate\", self.new_callback) self.add_action(new_action) open_action = gio.simpleaction.new(\"open\", none) open_action.connect(\"activate\", self.open_callback) self.add_action(open_action) save_action = gio.simpleaction.new(\"save\", none) save_action.connect(\"activate\", self.save_callback) self.add_action(save_action) save_as_action = gio.simpleaction.new(\"save-as\", none) save_as_action.connect(\"activate\", self.save_as_callback) self.add_action(save_as_action) # the file self.file = none # the textview with the buffer self.buffer = gtk.textbuffer() textview = gtk.textview(buffer=self.buffer) textview.set_wrap_mode(gtk.wrapmode.word) # a scrolled window for the textview self.scrolled_window = gtk.scrolledwindow() self.scrolled_window.set_policy( gtk.policytype.automatic, gtk.policytype.automatic) self.scrolled_window.add(textview) self.scrolled_window.set_border_width(5) # add the scrolled window to the window self.add(self.scrolled_window) # callback for new def new_callback(self, action, parameter): self.buffer.set_text(\"\") print \"new file created\" # callback for open def open_callback(self, action, parameter): # create a filechooserdialog to open: # the arguments are: title of the window, parent_window, action, # (buttons, response) open_dialog = gtk.filechooserdialog(\"pick a file\", self, gtk.filechooseraction.open, (gtk.stock_cancel, gtk.responsetype.cancel, gtk.stock_open, gtk.responsetype.accept)) # not only local files can be selected in the file selector open_dialog.set_local_only(false) # dialog always on top of the textview window open_dialog.set_modal(true) # connect the dialog with the callback function open_response_cb() open_dialog.connect(\"response\", self.open_response_cb) # show the dialog open_dialog.show() # callback function for the dialog open_dialog def open_response_cb(self, dialog, response_id): open_dialog = dialog # if response is \"accept\" (the button \"open\" has been clicked) if response_id == gtk.responsetype.accept: # self.file is the file that we get from the filechooserdialog self.file = open_dialog.get_file() # an empty string (provisionally) content = \"\" try: # load the content of the file into memory: # success is a boolean depending on the success of the operation # content is self-explanatory # etags is an entity tag (can be used to quickly determine if the # file has been modified from the version on the file system) [success, content, etags] = self.file.load_contents(none) except gobject.gerror as e: print \"error: \" + e.message # set the content as the text into the buffer self.buffer.set_text(content, len(content)) print \"opened: \" + open_dialog.get_filename() # if response is \"cancel\" (the button \"cancel\" has been clicked) elif response_id == gtk.responsetype.cancel: print \"cancelled: filechooseraction.open\" # destroy the filechooserdialog dialog.destroy() # callback function for save_as def save_as_callback(self, action, parameter): # create a filechooserdialog to save: # the arguments are: title of the window, parent_window, action, # (buttons, response) save_dialog = gtk.filechooserdialog(\"pick a file\", self, gtk.filechooseraction.save, (gtk.stock_cancel, gtk.responsetype.cancel, gtk.stock_save, gtk.responsetype.accept)) # the dialog will present a confirmation dialog if the user types a file name that # already exists save_dialog.set_do_overwrite_confirmation(true) # dialog always on top of the textview window save_dialog.set_modal(true) # if self.file has already been saved if self.file is not none: try: # set self.file as the current filename for the file chooser save_dialog.set_file(self.file) except gobject.gerror as e: print \"error: \" + e.message # connect the dialog to the callback function save_response_cb() save_dialog.connect(\"response\", self.save_response_cb) # show the dialog save_dialog.show() # callback function for the dialog save_dialog def save_response_cb(self, dialog, response_id): save_dialog = dialog # if response is \"accept\" (the button \"save\" has been clicked) if response_id == gtk.responsetype.accept: # self.file is the currently selected file self.file = save_dialog.get_file() # save to file (see below) self.save_to_file() # if response is \"cancel\" (the button \"cancel\" has been clicked) elif response_id == gtk.responsetype.cancel: print \"cancelled: filechooseraction.save\" # destroy the filechooserdialog dialog.destroy() # callback function for save def save_callback(self, action, parameter): # if self.file is not already there if self.file is not none: self.save_to_file() # self.file is a new file else: # use save_as self.save_as_callback(action, parameter) # save_to_file def save_to_file(self): # get the content of the buffer, without hidden characters [start, end] = self.buffer.get_bounds() current_contents = self.buffer.get_text(start, end, false) # if there is some content if current_contents != \"\": # set the content as content of self.file. # arguments: contents, etags, make_backup, flags, gerror try: self.file.replace_contents(current_contents, none, false, gio.filecreateflags.none, none) print \"saved: \" + self.file.get_path() except gobject.gerror as e: print \"error: \" + e.message # if the contents are empty else: # create (if the file does not exist) or overwrite the file in readwrite mode. # arguments: etags, make_backup, flags, gerror try: self.file.replace_readwrite(none, false, gio.filecreateflags.none, none) print \"saved: \" + self.file.get_path() except gobject.gerror as e: print \"error: \" + e.messageclass myapplication(gtk.application): def __init__(self): gtk.application.__init__(self) def do_activate(self): win = mywindow(self) win.show_all() def do_startup(self): gtk.application.do_startup(self) # app action quit, connected to the callback function quit_action = gio.simpleaction.new(\"quit\", none) quit_action.connect(\"activate\", self.quit_callback) self.add_action(quit_action) # get the menu from the ui file with a builder builder = gtk.builder() try: builder.add_from_file(\"filechooserdialog.ui\") except: print \"file not found\" sys.exit() menu = builder.get_object(\"appmenu\") self.set_app_menu(menu) # callback function for quit def quit_callback(self, action, parameter): self.quit()app = myapplication()exit_status = app.run(sys.argv)sys.exit(exit_status)

Greco

from gi.repository import gtkfrom gi.repository import gdkfrom gi.repository import giofrom gi.repository import gobjectimport sysclass mywindow(gtk.applicationwindow): def __init__(self, app): gtk.window.__init__( self, title=\"filechooserdialog example\", application=app) self.set_default_size(400, 400) # the actions for the window menu, connected to the callback functions new_action = gio.simpleaction.new(\"new\", none) new_action.connect(\"activate\", self.new_callback) self.add_action(new_action) open_action = gio.simpleaction.new(\"open\", none) open_action.connect(\"activate\", self.open_callback) self.add_action(open_action) save_action = gio.simpleaction.new(\"save\", none) save_action.connect(\"activate\", self.save_callback) self.add_action(save_action) save_as_action = gio.simpleaction.new(\"save-as\", none) save_as_action.connect(\"activate\", self.save_as_callback) self.add_action(save_as_action) # the file self.file = none # the textview with the buffer self.buffer = gtk.textbuffer() textview = gtk.textview(buffer=self.buffer) textview.set_wrap_mode(gtk.wrapmode.word) # a scrolled window for the textview self.scrolled_window = gtk.scrolledwindow() self.scrolled_window.set_policy( gtk.policytype.automatic, gtk.policytype.automatic) self.scrolled_window.add(textview) self.scrolled_window.set_border_width(5) # add the scrolled window to the window self.add(self.scrolled_window) # callback for new def new_callback(self, action, parameter): self.buffer.set_text(\"\") print \"new file created\" # callback for open def open_callback(self, action, parameter): # create a filechooserdialog to open: # the arguments are: title of the window, parent_window, action, # (buttons, response) open_dialog = gtk.filechooserdialog(\"pick a file\", self, gtk.filechooseraction.open, (gtk.stock_cancel, gtk.responsetype.cancel, gtk.stock_open, gtk.responsetype.accept)) # not only local files can be selected in the file selector open_dialog.set_local_only(false) # dialog always on top of the textview window open_dialog.set_modal(true) # connect the dialog with the callback function open_response_cb() open_dialog.connect(\"response\", self.open_response_cb) # show the dialog open_dialog.show() # callback function for the dialog open_dialog def open_response_cb(self, dialog, response_id): open_dialog = dialog # if response is \"accept\" (the button \"open\" has been clicked) if response_id == gtk.responsetype.accept: # self.file is the file that we get from the filechooserdialog self.file = open_dialog.get_file() # an empty string (provisionally) content = \"\" try: # load the content of the file into memory: # success is a boolean depending on the success of the operation # content is self-explanatory # etags is an entity tag (can be used to quickly determine if the # file has been modified from the version on the file system) [success, content, etags] = self.file.load_contents(none) except gobject.gerror as e: print \"error: \" + e.message # set the content as the text into the buffer self.buffer.set_text(content, len(content)) print \"opened: \" + open_dialog.get_filename() # if response is \"cancel\" (the button \"cancel\" has been clicked) elif response_id == gtk.responsetype.cancel: print \"cancelled: filechooseraction.open\" # destroy the filechooserdialog dialog.destroy() # callback function for save_as def save_as_callback(self, action, parameter): # create a filechooserdialog to save: # the arguments are: title of the window, parent_window, action, # (buttons, response) save_dialog = gtk.filechooserdialog(\"pick a file\", self, gtk.filechooseraction.save, (gtk.stock_cancel, gtk.responsetype.cancel, gtk.stock_save, gtk.responsetype.accept)) # the dialog will present a confirmation dialog if the user types a file name that # already exists save_dialog.set_do_overwrite_confirmation(true) # dialog always on top of the textview window save_dialog.set_modal(true) # if self.file has already been saved if self.file is not none: try: # set self.file as the current filename for the file chooser save_dialog.set_file(self.file) except gobject.gerror as e: print \"error: \" + e.message # connect the dialog to the callback function save_response_cb() save_dialog.connect(\"response\", self.save_response_cb) # show the dialog save_dialog.show() # callback function for the dialog save_dialog def save_response_cb(self, dialog, response_id): save_dialog = dialog # if response is \"accept\" (the button \"save\" has been clicked) if response_id == gtk.responsetype.accept: # self.file is the currently selected file self.file = save_dialog.get_file() # save to file (see below) self.save_to_file() # if response is \"cancel\" (the button \"cancel\" has been clicked) elif response_id == gtk.responsetype.cancel: print \"cancelled: filechooseraction.save\" # destroy the filechooserdialog dialog.destroy() # callback function for save def save_callback(self, action, parameter): # if self.file is not already there if self.file is not none: self.save_to_file() # self.file is a new file else: # use save_as self.save_as_callback(action, parameter) # save_to_file def save_to_file(self): # get the content of the buffer, without hidden characters [start, end] = self.buffer.get_bounds() current_contents = self.buffer.get_text(start, end, false) # if there is some content if current_contents != \"\": # set the content as content of self.file. # arguments: contents, etags, make_backup, flags, gerror try: self.file.replace_contents(current_contents, none, false, gio.filecreateflags.none, none) print \"saved: \" + self.file.get_path() except gobject.gerror as e: print \"error: \" + e.message # if the contents are empty else: # create (if the file does not exist) or overwrite the file in readwrite mode. # arguments: etags, make_backup, flags, gerror try: self.file.replace_readwrite(none, false, gio.filecreateflags.none, none) print \"saved: \" + self.file.get_path() except gobject.gerror as e: print \"error: \" + e.messageclass myapplication(gtk.application): def __init__(self): gtk.application.__init__(self) def do_activate(self): win = mywindow(self) win.show_all() def do_startup(self): gtk.application.do_startup(self) # app action quit, connected to the callback function quit_action = gio.simpleaction.new(\"quit\", none) quit_action.connect(\"activate\", self.quit_callback) self.add_action(quit_action) # get the menu from the ui file with a builder builder = gtk.builder() try: builder.add_from_file(\"filechooserdialog.ui\") except: print \"file not found\" sys.exit() menu = builder.get_object(\"appmenu\") self.set_app_menu(menu) # callback function for quit def quit_callback(self, action, parameter): self.quit()app = myapplication()exit_status = app.run(sys.argv)sys.exit(exit_status)

Ultimo aggiornamento 2020-04-20
Frequenza di utilizzo: 1
Qualità:

Attenzione: contiene formattazione HTML nascosta

Ottieni una traduzione migliore grazie a
10,388,471,977 contributi umani

Ci sono utenti che chiedono aiuto:



I cookie ci aiutano a fornire i nostri servizi. Utilizzando tali servizi, accetti l'utilizzo dei cookie da parte nostra. Maggiori informazioni. OK