| commit 17: | 379ee3ba75eb |
| parent 16: | 6e9cec0776bf |
| branch: | default |
cleaning dialogs...
- View xmonader's profile
-
xmonader's public repos »
- pyprayertime
- pygtkhelpers-main
- happytweet
- pyqplayer
- pyprayertime-db
- donbili
- mintNanny2
- netspeed-striky
- CSISOMounter
- pygoogleweather
- pytasker
- rfsindexer
- pygravatar
- happy-python-twitter
- pytextutils
- gfiler
- djapps
- gsum
- helloed
- gladizer
- simpleboard
- pida-xmon-main
- pybloomfilter
- pynetpbmparsers
- happypypackager
- pybasekit
- pynexodyne
- happymapper
- libmagicbindings
- prayertime
- pypcre
- shorturl
- Send message
9 months ago
Changed (Δ354 bytes):
raw changeset »
helloed6/src/hello.glade (3 lines added, 1 lines removed)
helloed6/src/hello.py (9 lines added, 5 lines removed)
Up to file-list helloed6/src/hello.glade:
617 |
617 |
<placeholder/> |
618 |
618 |
</child> |
619 |
619 |
<child> |
620 |
<widget class="GtkButton" id="b |
|
620 |
<widget class="GtkButton" id="btnwcok"> |
|
621 |
621 |
<property name="label" translatable="yes">gtk-ok</property> |
622 |
<property name="response_id">-5</property> |
|
622 |
623 |
<property name="visible">True</property> |
623 |
624 |
<property name="can_focus">True</property> |
624 |
625 |
<property name="receives_default">True</property> |
690 |
691 |
<child> |
691 |
692 |
<widget class="GtkButton" id="btngotoline"> |
692 |
693 |
<property name="label" translatable="yes">gtk-ok</property> |
694 |
<property name="response_id">-5</property> |
|
693 |
695 |
<property name="visible">True</property> |
694 |
696 |
<property name="can_focus">True</property> |
695 |
697 |
<property name="receives_default">True</property> |
Up to file-list helloed6/src/hello.py:
| … | … | @@ -458,8 +458,9 @@ class MainWindow(object): |
458 |
458 |
rtd=RegexToolkit().get_dialog() |
459 |
459 |
#rtd.set_default_response(gtk.RESPONSE_OK) |
460 |
460 |
res=rtd.run() |
461 |
if res==gtk.RESPONSE_CLOSE: |
|
462 |
rtd.destroy() |
|
461 |
print res.real |
|
462 |
if res in [gtk.RESPONSE_CLOSE, gtk.RESPONSE_DELETE_EVENT]: |
|
463 |
rtd.hide() |
|
463 |
464 |
#rtd.destroy() |
464 |
465 |
|
465 |
466 |
def on_menuitemwc_activate(self, widget, *args): |
| … | … | @@ -471,14 +472,17 @@ class MainWindow(object): |
471 |
472 |
self.lblgwccharsnospaces.set_label(str(self.wc.ncharsnospaces())) |
472 |
473 |
|
473 |
474 |
res=self._dialogwc.run() |
474 |
if res |
|
475 |
if res in [gtk.RESPONSE_OK, gtk.RESPONSE_CLOSE, gtk.RESPONSE_DELETE_EVENT]: |
|
475 |
476 |
self._dialogwc.hide() |
476 |
477 |
|
477 |
478 |
def on_menuitemgotoline_activate(self, widget, *args): |
478 |
479 |
res=self.dialoggotoline.run() |
479 |
|
|
480 |
#if res==gtk.RESPONSE_OK or gtk.RESPONSE_CLOSE: |
|
481 |
# self.dialoggotoline.hide() |
|
482 |
||
483 |
print res.real |
|
484 |
if res in [gtk.RESPONSE_OK, gtk.RESPONSE_CLOSE, gtk.RESPONSE_DELETE_EVENT]: |
|
480 |
485 |
self.dialoggotoline.hide() |
481 |
||
482 |
486 |
|
483 |
487 |
def on_btngotoline_clicked(self, widget, *args): |
484 |
488 |
try: |
