<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Buenos dias, Oscar <br>
</p>
<p>Utilicé el codigo que me enviaste y funciona perfectamente.</p>
<p>Gracias y saludos<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> gvsig_usuarios-bounces@listserv.gva.es &lt;gvsig_usuarios-bounces@listserv.gva.es&gt; en nombre de Óscar Martínez &lt;omartinez@gvsig.com&gt;<br>
<b>Enviado:</b> martes, 4 de octubre de 2016 7:32<br>
<b>Para:</b> gvsig_usuarios@listserv.gva.es<br>
<b>Asunto:</b> Re: [Gvsig_usuarios] RadioButton en un script</font>
<div>&nbsp;</div>
</div>
<div>
<p>Buenas,</p>
<p><br>
</p>
<p>Tuvimos esta situación y lo resolvimos por código. Básicamente generamos un ButtonGroup:</p>
<p><a previewremoved="true" id="LPlnk980093" class="moz-txt-link-freetext" href="https://github.com/nacho0605/GSoC/blob/master/GSoC_2016/01-TestCreatorAndPlayer/Test/questions/questionboolean.py">https://github.com/nacho0605/GSoC/blob/master/GSoC_2016/01-TestCreatorAndPlayer/Test/questions/questionboolean.py</a></p>
<div style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;" id="LPBorder_GT_14755688838910.48535828130708447">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14755688838830.4104037516078164" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;" id="ImageCell_14755688838840.28817647531900437">
<div style="background-color: rgb(255, 255, 255); height: 250px; position: relative; margin: auto; display: table; width: 250px;" id="LPImageContainer_14755688838850.1928999918144667">
<a target="_blank" href="https://github.com/nacho0605/GSoC/blob/master/GSoC_2016/01-TestCreatorAndPlayer/Test/questions/questionboolean.py" style="display: table-cell; text-align: center;" id="LPImageAnchor_14755688838860.41354831138246895"><img id="LPThumbnailImageID_14755688838870.6536310781554798" aria-label="Imagen de vista previa con vínculo seleccionado. Pulse dos veces para abrir el vínculo." style="display: inline-block; max-width: 250px; max-height: 250px; height: 250px; width: 250px; border-width: 0px; vertical-align: bottom;" height="250" width="250" src="https://avatars1.githubusercontent.com/u/13405287?v=3&amp;s=400"></a></div>
</td>
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14755688838870.9446702962284316">
<div id="LPRemovePreviewContainer_14755688838870.14131315801181243"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: &quot;wf_segoe-ui_light&quot;,&quot;Segoe UI Light&quot;,&quot;Segoe WP Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14755688838880.133400463930617">
<a target="_blank" href="https://github.com/nacho0605/GSoC/blob/master/GSoC_2016/01-TestCreatorAndPlayer/Test/questions/questionboolean.py" style="text-decoration: none;" id="LPUrlAnchor_14755688838890.81363082901901">nacho0605/GSoC</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: &quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14755688838890.8426808020768759">
github.com</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: &quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14755688838900.2374392742059228">
GSoC - Google Summer of Code</div>
</td>
</tr>
</tbody>
</table>
</div>
<p><br>
</p>
<p>&nbsp;&nbsp;&nbsp; self.btgAnswers = ButtonGroup()<br>
&nbsp;&nbsp;&nbsp; self.btgAnswers.add(self.rdbOption1)<br>
&nbsp;&nbsp;&nbsp; self.btgAnswers.add(self.rdbOption2)</p>
<p><br>
</p>
<p><br>
</p>
<p>de: <br>
</p>
<p>from javax.swing import ButtonGroup</p>
<p><br>
</p>
<p>Con esto nos funcionó correctamente en el proyecto. Tendrías que meterlo en el __init__</p>
<p><br>
</p>
<p>Espero que te sirva</p>
<p>Un saludo<br>
</p>
<br>
<div class="moz-cite-prefix">On 03/10/2016 9:21, Ovidio Ribeira wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>
<p class="MsoNormal"><span style="" lang="ES">Buenos días, estoy actualizando algunos scripts a la versión 2.3 y me he encontrado con el problema de que en un formulario con RadioButtons no me deselecciona uno al picar en el otro. Si abro el formulario desde
<span style="">&nbsp;</span>abeille si que <span style="">&nbsp;</span>se visualiza correctamente. Envío el script<span style="">&nbsp;
</span>por si me podéis echar una mano, gracias. </span></p>
<p class="MsoNormal"><span style="" lang="ES">Saludos.</span></p>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
gvSIG_usuarios mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gvSIG_usuarios@listserv.gva.es">gvSIG_usuarios@listserv.gva.es</a>

Para ver histórico de mensajes, editar sus preferencias de usuario o darse de baja en esta lista, acuda a la siguiente dirección:

<a class="moz-txt-link-freetext" href="https://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_usuarios">https://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_usuarios</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>