Skip to content

Commit aba977c

Browse files
author
Ram Rachum
committed
Me dizzy
1 parent a2ddd52 commit aba977c

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

src/garlicsim/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def sync_workers(self,temp_infinity_node=None):
152152
Returns the total amount of nodes that were added to the tree.
153153
"""
154154

155-
Cruncher = random.choice([CruncherThread, CruncherProcess])
155+
Cruncher = CruncherThread#random.choice([CruncherThread, CruncherProcess])
156156

157157
my_edges_to_crunch=self.edges_to_crunch.copy()
158158

src/garlicsimwx/applicationwindow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ def get_program_path():
2626
########################
2727

2828

29-
wxEVT_RUN_BACKGROUND = wx.NewEventType()
30-
EVT_RUN_BACKGROUND = wx.PyEventBinder(wxEVT_RUN_BACKGROUND, 1)
31-
32-
3329
class ApplicationWindow(wx.Frame):
3430
"""
3531
An application window that allows the user to open multiple GuiProjects

src/garlicsimwx/guiproject.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def __init__(self,simulation_package,parent_window):
3232

3333
self.state_showing_window=scrolled.ScrolledPanel(self.main_window,-1)
3434

35-
self.shell=wx.py.shell.Shell(self.main_window,-1,size=(400,-1))
35+
locals_for_shell = locals()
36+
locals_for_shell.update({"this_gui_project": self})
37+
self.shell=wx.py.shell.Shell(self.main_window, -1, size=(400,-1), locals=locals_for_shell)
3638
self.seek_bar=customwidgets.SeekBar(self.main_window,-1,self)
3739
self.tree_browser=customwidgets.TreeBrowser(self.main_window,-1,self)
3840

@@ -287,6 +289,6 @@ def make_generic_initial_dialog(self):
287289
initial_dialog.Destroy()
288290

289291
def tree_modify_refresh(self):
290-
self.seek_bar.Refresh()
291-
self.tree_browser.Refresh()
292+
pass#self.seek_bar.Refresh()
293+
#self.tree_browser.Refresh()
292294

src/garlicsimwx/simulationpackages/prisoner/prisonergui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def initialize(gui_project):
3030

3131
def show_state(gui_project,state):
3232
for player_type in player_types:
33-
part=gui_project.pie_part_dict[player_type]
34-
value=how_many_players_of_certain_type(state.player_pool,player_type)
33+
part = gui_project.pie_part_dict[player_type]
34+
value = how_many_players_of_certain_type(state.player_pool, player_type)
3535
part.SetValue(value)
3636
pass

0 commit comments

Comments
 (0)