So I'm here running my program on ssh secure shell and with Xming, but when I try to display my ".jpg" or ".bmp" image file on it, it returns an error: "Image file is not of type 1". What does this mean? The program runs fine on my computer, but just only when I am running through this server. The code is written in python. Thanks!
Here is the front of my code:
import wx
print wx.version()
import searchSeq
import sys
from wx.lib.pubsub import Publisher
from decimal import *
import math
import wx.lib.sheet as sheet
ID_ABOUT = 1
ID_EXIT = 2
class reWindow(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self,parent,id, 'Restriction Enzyme Window',
size = (800, 500))
#creat panel
panel = wx.Panel(self)
#insert picture
pic = wx.Image("DNA.bmp", wx.BITMAP_TYPE_BMP).ConvertToBitmap()
self.button = wx.BitmapButton(panel, -1, pic, pos = (630,250))
self.button.Bind(wx.EVT_BUTTON, self.runIt)