Code Duplication    Length = 13-14 lines in 2 locations

doorstop/gui/main.py 2 locations

@@ 251-264 (lines=14) @@
248
249
        def frame_tree(root):
250
            """Frame for the current document."""
251
            # Configure grid
252
            frame = ttk.Frame(root, **kw_f)
253
            frame.rowconfigure(0, weight=1)
254
            frame.columnconfigure(0, weight=0)
255
            frame.columnconfigure(1, weight=1)
256
257
            # Place widgets
258
            ttk.Label(frame, text="Document:").grid(row=0, column=0, **kw_gp)
259
            self.combobox_documents = ttk.Combobox(frame, textvariable=self.stringvar_document, state='readonly')
260
            self.combobox_documents.grid(row=0, column=1, **kw_gsp)
261
262
            return frame
263
264
        def frame_document(root):
265
            """Frame for current document's outline and items."""
266
            # Configure grid
267
            frame = ttk.Frame(root, **kw_f)
@@ 237-249 (lines=13) @@
234
        # Create widgets
235
        def frame_project(root):
236
            """Frame for the current project."""
237
            # Configure grid
238
            frame = ttk.Frame(root, **kw_f)
239
            frame.rowconfigure(0, weight=1)
240
            frame.columnconfigure(0, weight=0)
241
            frame.columnconfigure(1, weight=1)
242
243
            # Place widgets
244
            ttk.Label(frame, text="Project:").grid(row=0, column=0, **kw_gp)
245
            ttk.Entry(frame, textvariable=self.stringvar_project).grid(row=0, column=1, **kw_gsp)
246
247
            return frame
248
249
        def frame_tree(root):
250
            """Frame for the current document."""
251
            # Configure grid
252
            frame = ttk.Frame(root, **kw_f)