Skip to content

Commit 55e44be

Browse files
Desktopshortcut removal of GUI (#1865)
* Initial WhiteSource configuration file * Removes Notebook tab from Desktop Shortcut Creator tool
1 parent 5aede66 commit 55e44be

File tree

2 files changed

+11
-28
lines changed

2 files changed

+11
-28
lines changed

.whitesource

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
##########################################################
2+
#### WhiteSource Integration configuration file ####
3+
##########################################################
4+
5+
# Configuration #
6+
#---------------#
7+
ws.repo.scan=true
8+
vulnerable.check.run.conclusion.level=failure

src/robotide/postinstall/desktopshortcut.py

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -52,33 +52,8 @@ def _create_menu(self):
5252
position=85))
5353

5454
def OnViewShortcutCreate(self, event):
55-
if not self._window:
56-
self._window = _ShortcutCreateWindow(self.notebook)
57-
else:
58-
self.notebook.show_tab(self._window)
59-
self._window.call_creator()
55+
self.call_creator(self.notebook)
6056
# self.disable()
6157

62-
63-
class _ShortcutCreateWindow(wx.TextCtrl):
64-
def __init__(self, notebook):
65-
wx.TextCtrl.__init__(
66-
self, notebook, style=wx.TE_MULTILINE) # DEBUG wx.TE_READONLY |
67-
self._create_ui()
68-
self._add_to_notebook(notebook)
69-
self.SetFont(widgets.Font().fixed_log)
70-
71-
def _create_ui(self):
72-
sizer = wx.BoxSizer(wx.VERTICAL)
73-
sizer.Add(self)
74-
self.SetSizer(sizer)
75-
76-
def _add_to_notebook(self, notebook):
77-
notebook.add_tab(self, 'Create RIDE Desktop Shortcut',
78-
allow_closing=True)
79-
80-
def close(self, notebook):
81-
notebook.delete_tab(self)
82-
83-
def call_creator(self):
84-
return postinstall.caller(self.GetParent(), sys.platform.lower())
58+
def call_creator(self, notebook):
59+
return postinstall.caller(notebook.GetParent(), sys.platform.lower())

0 commit comments

Comments
 (0)