def OnButton_KernelWeights(self, evt): if not hasattr(self, "kernel_weights_diag"): self.kernel_weights_diag = control.weightsDialog( style=ENABLE_KERNEL_WEIGHTS) if self.kernel_weights_diag.ShowModal() == wx.ID_OK: my_w = self.kernel_weights_diag.GetW() print my_w
def OnButton_ModelWeigths(self, evt): if not hasattr(self, "model_weights_diag"): self.model_weights_diag = control.weightsDialog( style=ENABLE_CONTIGUITY_WEIGHTS | ENABLE_DISTANCE_WEIGHTS) if self.model_weights_diag.ShowModal() == wx.ID_OK: my_w = self.model_weights_diag.GetW() print my_w