Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3495)

Issue 3744044: Fix default for buttons on wizards. Fix issue:1806

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by udono
Modified:
10 years, 9 months ago
Reviewers:
yangoon, ced
Visibility:
Public.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix test similar to wizard/main.py #

Patch Set 3 : Change the default button when changing the tab #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M tryton/gui/main.py View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M tryton/gui/window/wizard.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15
ced
http://codereview.appspot.com/3744044/diff/1/tryton/gui/window/wizard.py File tryton/gui/window/wizard.py (right): http://codereview.appspot.com/3744044/diff/1/tryton/gui/window/wizard.py#newcode170 tryton/gui/window/wizard.py:170: if i[3] is True: Should use the same test ...
13 years, 3 months ago (2011-01-05 19:24:16 UTC) #1
udono
http://codereview.appspot.com/3744044/diff/1/tryton/gui/window/wizard.py File tryton/gui/window/wizard.py (right): http://codereview.appspot.com/3744044/diff/1/tryton/gui/window/wizard.py#newcode170 tryton/gui/window/wizard.py:170: if i[3] is True: On 2011/01/05 19:24:16, ced wrote: ...
13 years, 3 months ago (2011-01-06 10:10:42 UTC) #2
ced
On 2011/01/06 10:10:42, udono wrote: > http://codereview.appspot.com/3744044/diff/1/tryton/gui/window/wizard.py#newcode172 > tryton/gui/window/wizard.py:172: self.window.set_default(but) > On 2011/01/05 19:24:16, ced ...
13 years, 3 months ago (2011-01-06 13:00:07 UTC) #3
yangoon
13 years, 3 months ago (2011-01-07 11:24:23 UTC) #4
udono
[ping] The last changeset did work for me. Please test.
13 years, 3 months ago (2011-01-30 14:08:13 UTC) #5
ced
I don't like very much to store on the main window the default buttons. Also ...
13 years, 3 months ago (2011-01-30 14:18:26 UTC) #6
udono
On 2011/01/30 14:18:26, ced wrote: > I don't like very much to store on the ...
13 years, 3 months ago (2011-01-31 16:02:54 UTC) #7
ced
On 2011/01/31 16:02:54, udono wrote: > On 2011/01/30 14:18:26, ced wrote: > > Also it ...
13 years, 3 months ago (2011-01-31 16:06:14 UTC) #8
ced
On 2011/01/31 16:06:14, ced wrote: > On 2011/01/31 16:02:54, udono wrote: > > On 2011/01/30 ...
13 years, 2 months ago (2011-02-02 12:35:51 UTC) #9
udono
I requested for help on pygtk[1]. For this I created a small testapp which shows ...
13 years, 2 months ago (2011-02-06 20:41:01 UTC) #10
udono
On 2011/02/02 12:35:51, ced wrote: > On 2011/01/31 16:06:14, ced wrote: > > On 2011/01/31 ...
13 years, 2 months ago (2011-02-08 09:24:54 UTC) #11
udono
On 2011/02/08 09:24:54, udono wrote: > On 2011/02/02 12:35:51, ced wrote: > > On 2011/01/31 ...
13 years, 2 months ago (2011-02-08 09:55:07 UTC) #12
ced
On 2011/02/08 09:55:07, udono wrote: > On 2011/02/08 09:24:54, udono wrote: > > On 2011/02/02 ...
13 years, 2 months ago (2011-02-08 10:17:32 UTC) #13
udono
On 2011/02/08 10:17:32, ced wrote: > On 2011/02/08 09:55:07, udono wrote: > > On 2011/02/08 ...
13 years, 2 months ago (2011-02-08 10:34:23 UTC) #14
ced
13 years, 2 months ago (2011-02-08 10:37:56 UTC) #15
On 2011/02/08 10:34:23, udono wrote:
> On 2011/02/08 10:17:32, ced wrote:
> > On 2011/02/08 09:55:07, udono wrote:
> > > On 2011/02/08 09:24:54, udono wrote:
> > > > On 2011/02/02 12:35:51, ced wrote:
> > > > > On 2011/01/31 16:06:14, ced wrote:
> > > > > > On 2011/01/31 16:02:54, udono wrote:
> > > > > > > On 2011/01/30 14:18:26, ced wrote:
> > > > > > > > Also it will not work correctly on a board that contains
wizards.
> > > > > > > Yes, this is true. But what is the correct behavoir for boards
with
> > many
> > > > > > window
> > > > > > > wizawrds?
> > > > > > 
> > > > > > I don't know. But it is something that can happen.
> > > > > > 
> > > > > > > > We should search if there is no proper way to manage that with
> GTK.
> > > > > > > I searched a whole day but found no better solution. Maybe you
have
> an
> > > > > > > idea/hint?
> > > > > > 
> > > > > > Did you ask to pyGTK or GTK devs?
> > > > > Did you try by listening at the level of the tab the event "activate"
?
> > > > I try it on this level, but have not found results. BTW the 
> > > > "activate" you mentioned is a signal for entry widgets. And not every
> > notebook
> > > > tab must have an entry widgets.
> > > > The notebook tab in Tryton is represented by a VBox()[3]. 
> > > > I try around to get a signal when the VBox is shown on opening a tab,
but
> I
> > > did
> > > > not found any.
> > > > 
> > > > [3] http://www.pygtk.org/docs/pygtk/class-gtkvbox.html
> > > But as I think about your idea, it could be a viable way, to catch any
> > > 'activate' Signal on a Notebook page and set the default button for the
> parent
> > > widget. With this we maybe could handle window wizards inside boards?
> > 
> > Yes. I'm concern about this because I would like to have clean separation
> > between main windows and tabs to be able to DnD tabs in other windows.
> But for DnD we have the drag and drop signals. On drag we can delete the entry
> in self.pages_default_button of client1 and on drop we create a new entry in 
> self.pages_default_button of client2. I can not see a problem on this.
> 
> As far as I understand, we need two mechanisms to handle default buttons: one
> for view type 'form' and another for 'board'. The one for form is given by
this
> patch, the one for board needed to be done.

No, this is about separation of code.
You want to manage behavior of tab content from outside the tab.
If you can have inside the tab then you got both behavior (tab and board).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b