Skip to content

Commit 9b3f374

Browse files
committed
grid
1 parent 86f622a commit 9b3f374

2 files changed

Lines changed: 40 additions & 16 deletions

File tree

PyQt/.ipynb_checkpoints/Orysya-checkpoint.ipynb

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": 4,
72+
"execution_count": 6,
7373
"metadata": {
7474
"collapsed": false
7575
},
@@ -78,10 +78,6 @@
7878
"name": "stdout",
7979
"output_type": "stream",
8080
"text": [
81-
"0\n",
82-
"Explore Individual Cell Lines\n",
83-
"1\n",
84-
"Cell Line Correlation\n",
8581
"0\n",
8682
"Explore Individual Cell Lines\n"
8783
]
@@ -140,16 +136,23 @@
140136
" self.grid.addWidget(self.correlation_button, 1,1)\n",
141137
" tab1.setGeometry(1000,1000, 1000, 1000)\n",
142138
" tab1.setLayout(self.grid) \n",
143-
" \n",
144-
" \n",
145-
" \n",
146139
" self.addTab(tab2,\"Tab 2\")\n",
147140
" self.addTab(tab3,\"Tab 3\")\n",
148141
" self.addTab(tab4,\"Tab 4\") \n",
149142
" self.show()\n",
150143
" \n",
151144
" def radio_button_clicked(self):\n",
152145
" print(self.button_group.checkedId())\n",
146+
" \n",
147+
" # self.explore_button is index 0\n",
148+
" if self.button_group.checkedId() == 0: \n",
149+
" self.explore_button\n",
150+
" self.dropdown1 = QtGui.QComboBox(self)\n",
151+
" self.parameters = ['x', 'y', 'z']\n",
152+
" self.dropdown1.addItems(self.parameters)\n",
153+
" self.grid.addWidget(self.dropdown1, 2,0)\n",
154+
" \n",
155+
" #self.grid.addWidget(self.explore_button, 1,0)\n",
153156
" print(self.button_group.checkedButton().text())\n",
154157
"\n",
155158
"\n",
@@ -165,6 +168,15 @@
165168
" main()\n",
166169
"\n"
167170
]
171+
},
172+
{
173+
"cell_type": "code",
174+
"execution_count": null,
175+
"metadata": {
176+
"collapsed": true
177+
},
178+
"outputs": [],
179+
"source": []
168180
}
169181
],
170182
"metadata": {

PyQt/Orysya.ipynb

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": 4,
72+
"execution_count": 6,
7373
"metadata": {
7474
"collapsed": false
7575
},
@@ -78,10 +78,6 @@
7878
"name": "stdout",
7979
"output_type": "stream",
8080
"text": [
81-
"0\n",
82-
"Explore Individual Cell Lines\n",
83-
"1\n",
84-
"Cell Line Correlation\n",
8581
"0\n",
8682
"Explore Individual Cell Lines\n"
8783
]
@@ -140,16 +136,23 @@
140136
" self.grid.addWidget(self.correlation_button, 1,1)\n",
141137
" tab1.setGeometry(1000,1000, 1000, 1000)\n",
142138
" tab1.setLayout(self.grid) \n",
143-
" \n",
144-
" \n",
145-
" \n",
146139
" self.addTab(tab2,\"Tab 2\")\n",
147140
" self.addTab(tab3,\"Tab 3\")\n",
148141
" self.addTab(tab4,\"Tab 4\") \n",
149142
" self.show()\n",
150143
" \n",
151144
" def radio_button_clicked(self):\n",
152145
" print(self.button_group.checkedId())\n",
146+
" \n",
147+
" # self.explore_button is index 0\n",
148+
" if self.button_group.checkedId() == 0: \n",
149+
" self.explore_button\n",
150+
" self.dropdown1 = QtGui.QComboBox(self)\n",
151+
" self.parameters = ['x', 'y', 'z']\n",
152+
" self.dropdown1.addItems(self.parameters)\n",
153+
" self.grid.addWidget(self.dropdown1, 2,0)\n",
154+
" \n",
155+
" #self.grid.addWidget(self.explore_button, 1,0)\n",
153156
" print(self.button_group.checkedButton().text())\n",
154157
"\n",
155158
"\n",
@@ -165,6 +168,15 @@
165168
" main()\n",
166169
"\n"
167170
]
171+
},
172+
{
173+
"cell_type": "code",
174+
"execution_count": null,
175+
"metadata": {
176+
"collapsed": true
177+
},
178+
"outputs": [],
179+
"source": []
168180
}
169181
],
170182
"metadata": {

0 commit comments

Comments
 (0)