From b105a2a9e9068463eaad97b402209e3b944b6501 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 22 Jun 2008 21:18:29 +0200 Subject: First mail window draft --- portato/gui/templates/MailInfoWindow.glade | 185 +++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 portato/gui/templates/MailInfoWindow.glade (limited to 'portato/gui/templates') diff --git a/portato/gui/templates/MailInfoWindow.glade b/portato/gui/templates/MailInfoWindow.glade new file mode 100644 index 0000000..6d72295 --- /dev/null +++ b/portato/gui/templates/MailInfoWindow.glade @@ -0,0 +1,185 @@ + + + + + + Send Bug Mail ... + GTK_WIN_POS_CENTER + True + GDK_WINDOW_TYPE_HINT_DIALOG + True + True + + + True + + + True + 4 + 2 + + + True + <b><u>Additional Information</u></b> + +(all optional) + True + GTK_JUSTIFY_CENTER + + + 2 + + + + + True + True + + + 1 + 2 + 1 + 2 + + + + + True + True + + + 1 + 2 + 2 + 3 + + + + + True + 0 + Email address: + True + + + 2 + 3 + 5 + + + + + True + 0 + Name: + True + + + 1 + 2 + 5 + + + + + True + 0 + Comments / +what did you do to hit the bug? + + + 3 + 4 + 5 + + + + + True + 0 + 0 + GTK_SHADOW_IN + + + True + True + + + + + + label_item + + + + + 1 + 2 + 3 + 4 + + + + + + + True + True + GTK_BUTTONBOX_SPREAD + + + True + True + True + gtk-cancel + True + 0 + + + + + + True + True + True + 0 + + + + True + 2 + + + True + 1 + gtk-ok + + + + + True + 0 + _Send + True + True + + + 1 + + + + + + + 1 + + + + + 1 + + + + + + -- cgit v1.2.3-70-g09d2 From 0392a7dcbaa08cbc73e091422bf6f68dbfa8d7f6 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 23 Jun 2008 22:30:43 +0200 Subject: Finished send_mail work --- portato/gui/templates/MailInfoWindow.glade | 117 +++++++++++++++++------------ portato/gui/windows/mailinfo.py | 3 +- 2 files changed, 68 insertions(+), 52 deletions(-) (limited to 'portato/gui/templates') diff --git a/portato/gui/templates/MailInfoWindow.glade b/portato/gui/templates/MailInfoWindow.glade index 6d72295..743c81c 100644 --- a/portato/gui/templates/MailInfoWindow.glade +++ b/portato/gui/templates/MailInfoWindow.glade @@ -1,10 +1,12 @@ - + Send Bug Mail ... GTK_WIN_POS_CENTER + 450 + 230 True GDK_WINDOW_TYPE_HINT_DIALOG True @@ -17,41 +19,57 @@ True 4 2 + 10 - + True - <b><u>Additional Information</u></b> - -(all optional) - True - GTK_JUSTIFY_CENTER + True + GTK_POLICY_NEVER + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + + + 50 + True + True + + + 1 2 + 3 + 4 + 5 - + True - True + 0 + Comments / +what did you do to hit the bug? - 1 - 2 - 1 - 2 + 3 + 4 + GTK_FILL + 5 - + True - True + 0 + Name: + True - 1 - 2 - 2 - 3 + 1 + 2 + GTK_FILL + GTK_FILL + 5 @@ -64,62 +82,58 @@ 2 3 + GTK_FILL + GTK_FILL 5 - + True - 0 - Name: - True + True - 1 - 2 + 1 + 2 + 2 + 3 + GTK_FILL + GTK_FILL 5 - + True - 0 - Comments / -what did you do to hit the bug? + True - 3 - 4 + 1 + 2 + 1 + 2 + GTK_FILL 5 - + True - 0 - 0 - GTK_SHADOW_IN - - - True - True - - - - - - label_item - - + <b><u>Additional Information</u></b> + +(all optional) + True + GTK_JUSTIFY_CENTER - 1 2 - 3 - 4 + GTK_FILL + + 5 + @@ -176,6 +190,9 @@ what did you do to hit the bug? + False + False + 5 1 diff --git a/portato/gui/windows/mailinfo.py b/portato/gui/windows/mailinfo.py index 93d2be4..8e476c6 100644 --- a/portato/gui/windows/mailinfo.py +++ b/portato/gui/windows/mailinfo.py @@ -12,13 +12,12 @@ from __future__ import absolute_import -import gtk import smtplib import time from .basic import AbstractDialog from ..utils import GtkThread -from ...helper import debug +from ...helper import debug, info from ...constants import VERSION class MailInfoWindow (AbstractDialog): -- cgit v1.2.3-70-g09d2