Search Results

Search found 4 results on 1 pages for 'tix'.

Page 1/1 | 1 

  • Python Tkinter Tix: How to use ScrolledWindow with grid in Tix NoteBook

    - by Sano98
    Hi guys, I'm adding several widgets to a Frame which is located in a tix.NoteBook. When there are too much widgets to fit in the window, I want to use a scrollbar, so I put tix.ScrolledWindow inside that Frame and add my widgets to this ScrolledWindow instead. The problem is that when using the grid() geometry manager, the scrollbar appears, but it is not working (The drag bar occupies the whole scroll bar). from Tkinter import * import Tix class Window: def __init__(self, root): self.labelList = [] self.notebook = Tix.NoteBook(root, ipadx=3, ipady=3) self.notebook.add('sheet_1', label="Sheet 1", underline=0) self.notebook.add('sheet_2', label="Sheet 2", underline=0) self.notebook.add('sheet_3', label="Sheet 3", underline=0) self.notebook.pack() #self.notebook.grid(row=0, column=0) tab1=self.notebook.sheet_1 tab2=self.notebook.sheet_2 tab3=self.notebook.sheet_3 self.myMainContainer = Frame(tab1) self.myMainContainer.pack() #self.myMainContainer.grid(row=0, column=0) scrwin = Tix.ScrolledWindow(self.myMainContainer, scrollbar='y') scrwin.pack() #scrwin.grid(row=0, column=0) self.win = scrwin.window for i in range (100): self.labelList.append((Label(self.win))) self.labelList[-1].config(text= "Bla", relief = SUNKEN) self.labelList[-1].grid(row=i, column=0, sticky=W+E) root = Tix.Tk() myWindow = Window(root) root.mainloop() Whenever I change at least one of the geometry managers from pack() to grid(), the problem occurs. (Actually, I'd prefer using grid() for all containers.) When I don't use the NoteBook widget, the problem does not occur either. The other examples here all seem to rely on pack(). Any ideas? Many thanks, Sano

    Read the article

  • Installing Tcl and Tix in OSX

    - by Nate
    Hello, I'm having trouble installing Tix on OSX the version of Tix I am using is 8.4.3. I try to install it by following the instructions in the README % ./configure % make % make install And iat the very start of make it gives me: xXpm.o tixUnixWm.o -L/Library/Frameworks/Tcl.framework -ltclstub8.5 -L/Library/Frameworks/Tk.framework -ltkstub8.5 ld: warning: in /Library/Frameworks/Tcl.framework/libtclstub8.5.a, missing required architecture x86_64 in file ld: warning: in /Library/Frameworks/Tk.framework/libtkstub8.5.a, missing required architecture x86_64 in file Undefined symbols: (A whole long list of things) at the very end ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [libTix8.4.3.dylib] Error 1 Edit: Here's all the errors in the middle.. ld: warning: in /Library/Frameworks/Tcl.framework/libtclstub8.5.a, missing required architecture x86_64 in file ld: warning: in /Library/Frameworks/Tk.framework/libtkstub8.5.a, missing required architecture x86_64 in file Undefined symbols: "_Tk_InitStubs", referenced from: _Tix_Init in tixInit.o "_Tcl_InitStubs", referenced from: _Tix_Init in tixInit.o "_tclStubsPtr", referenced from: _FreeParseOptions in tixClass.o _FreeParseOptions in tixClass.o _Tix_UninitializedClassCmd in tixClass.o _Tix_UninitializedClassCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_InstanceCmd in tixClass.o _Tix_CreateInstanceCmd in tixClass.o _SetupAttribute in tixClass.o _SetupAttribute in tixClass.o _SetupAttribute in tixClass.o _ClassTableDeleteProc in tixClass.o _CreateClassRecord in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _InitClass in tixClass.o _Tix_ClassCmd in tixClass.o _EventProc in tixCmds.o _IdleHandler in tixCmds.o _MapEventProc in tixCmds.o _MapEventProc in tixCmds.o _Tix_GetDefaultCmd in tixCmds.o _Tix_GetDefaultCmd in tixCmds.o _Tix_TmpLineCmd in tixCmds.o _Tix_ParentWindow in tixCmds.o _Tix_ParentWindow in tixCmds.o _Tix_DoWhenMappedCmd in tixCmds.o _Tix_DoWhenMappedCmd in tixCmds.o _Tix_DoWhenMappedCmd in tixCmds.o _Tix_DoWhenIdleCmd in tixCmds.o _Tix_DoWhenIdleCmd in tixCmds.o _Tix_DoWhenIdleCmd in tixCmds.o _Tix_DoWhenIdleCmd in tixCmds.o _Tix_DoWhenIdleCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_HandleOptionsCmd in tixCmds.o _Tix_Get3DBorderCmd in tixCmds.o _Tix_Get3DBorderCmd in tixCmds.o _Tix_Get3DBorderCmd in tixCmds.o _tixStrDup in tixCompat.o _Tix_ArgcError in tixError.o _Tix_ValueMissingError in tixError.o _Tix_UnknownPublicMethodError in tixError.o _FreeClientStruct in tixGeometry.o _StructureProc in tixGeometry.o _StructureProc in tixGeometry.o _Tix_ManageGeometryCmd in tixGeometry.o _Tix_ManageGeometryCmd in tixGeometry.o _Tix_ManageGeometryCmd in tixGeometry.o _GeoLostSlaveProc in tixGeometry.o _GeoLostSlaveProc in tixGeometry.o _GeoReqProc in tixGeometry.o _Tix_SafeInit in tixInit.o _Tix_Init in tixInit.o _Tix_GetContext in tixMethod.o _Tix_SuperClass in tixMethod.o _Tix_FindConfigSpecByName in tixOption.o _Tix_ChangeOptions in tixOption.o _Tix_QueryOneOption in tixOption.o _Tix_GetVar in tixOption.o _Tix_SetScrollBarView in tixScroll.o _Tix_SetScrollBarView in tixScroll.o _Tix_UpdateScrollBar in tixScroll.o _Tix_CreateCommands in tixUtils.o _Tix_CreateCommands in tixUtils.o _DeleteHashTableProc in tixUtils.o _TixGetHashTable in tixUtils.o _Tix_SetRcFileName in tixUtils.o _Tix_CreateSubWindow in tixUtils.o _ReliefParseProc in tixUtils.o _Tix_HandleSubCmds in tixUtils.o _Tix_HandleSubCmds in tixUtils.o _Tix_HandleSubCmds in tixUtils.o _Tix_ZAlloc in tixUtils.o _Tix_GlobalVarEval in tixUtils.o _Tix_Exit in tixUtils.o _Tix_Exit in tixUtils.o _Tix_CreateWidgetCmd in tixWidget.o _Tix_CreateWidgetCmd in tixWidget.o _Tix_GrSelModify in tixGrSel.o _Tix_GrFreeSortItems in tixGrSort.o _SortCompareProc in tixGrSort.o _SortCompareProc in tixGrSort.o _SortCompareProc in tixGrSort.o _Tix_GrGetSortItems in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GrSort in tixGrSort.o _Tix_GetChars in tixGrUtl.o _Tix_GrConfigSize in tixGrUtl.o _Tix_GrConfigSize in tixGrUtl.o _Tix_GrConfigSize in tixGrUtl.o _Tix_GrConfigSize in tixGrUtl.o _Tix_HLCancelResizeWhenIdle in tixHList.o _Tix_HLFindElement in tixHList.o _CurSelection in tixHList.o _Tix_HLGeometryInfo in tixHList.o _Tix_HLGeometryInfo in tixHList.o _Tix_HLGeometryInfo in tixHList.o _UpdateOneScrollBar in tixHList.o _AllocElement in tixHList.o _WidgetCommand in tixHList.o _Tix_HLEntryCget in tixHList.o _Tix_HLResizeWhenIdle in tixHList.o _Tix_HLResizeWhenIdle in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _NewElement in tixHList.o _WidgetConfigure in tixHList.o _WidgetConfigure in tixHList.o _Tix_HListCmd in tixHList.o _Tix_HListCmd in tixHList.o _Tix_HListCmd in tixHList.o _Tix_HListCmd in tixHList.o _Tix_HListCmd in tixHList.o _UpdateScrollBars in tixHList.o _FreeElement in tixHList.o _FreeElement in tixHList.o _Tix_HLDelete in tixHList.o _Tix_HLDelete in tixHList.o _WidgetDestroy in tixHList.o _WidgetDestroy in tixHList.o _Tix_HLXView in tixHList.o _Tix_HLXView in tixHList.o _Tix_HLXView in tixHList.o _Tix_HLXView in tixHList.o _Tix_HLXView in tixHList.o _Tix_HLSetSite in tixHList.o _Tix_HLSetSite in tixHList.o _Tix_HLSetSite in tixHList.o _ConfigElement in tixHList.o _Tix_HLAddChild in tixHList.o _Tix_HLAdd in tixHList.o _Tix_HLComputeGeometry in tixHList.o _Tix_HLResizeNow in tixHList.o _Tix_HLNearest in tixHList.o _SubWindowEventProc in tixHList.o _WidgetEventProc in tixHList.o _WidgetEventProc in tixHList.o _WidgetEventProc in tixHList.o _WidgetEventProc in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLItemInfo in tixHList.o _Tix_HLSelection in tixHList.o _Tix_HLSelection in tixHList.o _Tix_HLSelection in tixHList.o _Tix_HLSelection in tixHList.o _Tix_HLYView in tixHList.o _Tix_HLYView in tixHList.o _Tix_HLYView in tixHList.o _Tix_HLSeeElement in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _Tix_HLSee in tixHList.o _Tix_HLInfo in tixHList.o _Tix_HLInfo in tixHList.o _Tix_HLInfo in tixHList.o _Tix_HLInfo in tixHList.o _Tix_HLInfo in tixHList.o _Tix_HLInfo in tixHList.o _Tix_HLAllocColumn in tixHLCol.o _Tix_HLColWidth in tixHLCol.o _Tix_HLColWidth in tixHLCol.o _Tix_HLColWidth in tixHLCol.o _Tix_HLColWidth in tixHLCol.o _Tix_HLGetColumn in tixHLCol.o _Tix_HLGetColumn in tixHLCol.o _Tix_HLGetColumn in tixHLCol.o _Tix_HLItemExists in tixHLCol.o _Tix_HLItemExists in tixHLCol.o _Tix_HLItemDelete in tixHLCol.o _Tix_HLItemCreate in tixHLCol.o _Tix_HLIndExists in tixHLInd.o _Tix_HLIndExists in tixHLInd.o _Tix_HLIndCGet in tixHLInd.o _Tix_HLIndSize in tixHLInd.o _Tix_HLIndSize in tixHLInd.o _Tix_HLIndDelete in tixHLInd.o _Tix_HLIndCreate in tixHLInd.o _Tix_HLIndConfig in tixHLInd.o _Tix_HLGetHeader in tixHLHdr.o _Tix_HLCreateHeaders in tixHLHdr.o _Tix_HLCreateHeaders in tixHLHdr.o _Tix_HLHdrExist in tixHLHdr.o _Tix_HLHdrExist in tixHLHdr.o _Tix_HLHdrSize in tixHLHdr.o _Tix_HLHdrSize in tixHLHdr.o _Tix_HLFreeHeaders in tixHLHdr.o _Tix_HLHdrCreate in tixHLHdr.o _DeleteTab in tixNBFrame.o _DeleteTab in tixNBFrame.o _WidgetDestroy in tixNBFrame.o _FindTab in tixNBFrame.o _ImageProc in tixNBFrame.o _TabConfigure in tixNBFrame.o _WidgetEventProc in tixNBFrame.o _WidgetEventProc in tixNBFrame.o _WidgetEventProc in tixNBFrame.o _WidgetConfigure in tixNBFrame.o _Tix_NoteBookFrameCmd in tixNBFrame.o _Tix_NoteBookFrameCmd in tixNBFrame.o _Tix_NoteBookFrameCmd in tixNBFrame.o _Tix_NoteBookFrameCmd in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _ResizeWhenIdle in tixTList.o _ResizeWhenIdle in tixTList.o _WidgetConfigure in tixTList.o _WidgetConfigure in tixTList.o _Tix_TListCmd in tixTList.o _Tix_TListCmd in tixTList.o _UpdateScrollBars in tixTList.o _WidgetCommand in tixTList.o _Tix_TLGeometryInfo in tixTList.o _Tix_TLGeometryInfo in tixTList.o _Tix_TLGeometryInfo in tixTList.o _Tix_TLSpecialEntryInfo in tixTList.o _Tix_TLSpecialEntryInfo in tixTList.o _Tix_TLSpecialEntryInfo in tixTList.o _FreeEntry in tixTList.o _WidgetComputeGeometry in tixTList.o _WidgetComputeGeometry in tixTList.o _WidgetComputeGeometry in tixTList.o _Tix_TLGetNearest in tixTList.o _Tix_TranslateIndex in tixTList.o _Tix_TLEntryCget in tixTList.o _WidgetDestroy in tixTList.o _WidgetDestroy in tixTList.o _Tix_TLGetNeighbor in tixTList.o _Tix_TLGetNeighbor in tixTList.o _Tix_TLInfo in tixTList.o _Tix_TLInfo in tixTList.o _Tix_TLInfo in tixTList.o _Tix_TLInfo in tixTList.o _Tix_TLIndex in tixTList.o _Tix_TLNearest in tixTList.o _WidgetEventProc in tixTList.o _WidgetEventProc in tixTList.o _WidgetEventProc in tixTList.o _ConfigElement in tixTList.o _Tix_TLEntryConfig in tixTList.o _Tix_TLInsert in tixTList.o _Tix_TLInsert in tixTList.o _Tix_TLInsert in tixTList.o _Tix_TLView in tixTList.o _Tix_TLView in tixTList.o _Tix_TLSetSite in tixTList.o _Tix_TLSetSite in tixTList.o _Tix_TLSetSite in tixTList.o _Tix_TLSee in tixTList.o _Tix_TLSee in tixTList.o _Tix_TLSelection in tixTList.o _Tix_TLSelection in tixTList.o _Tix_TLSelection in tixTList.o _Tix_TLSelection in tixTList.o _ImgCmpGet in tixImgCmp.o _FreeLine in tixImgCmp.o _AddNewLine in tixImgCmp.o _FreeItem in tixImgCmp.o _AddNewText in tixImgCmp.o _AddNewSpace in tixImgCmp.o _AddNewImage in tixImgCmp.o _AddNewBitmap in tixImgCmp.o _ImgCmpFreeResources in tixImgCmp.o _ImgCmpDelete in tixImgCmp.o _ImgCmpConfigureMaster in tixImgCmp.o _ImgCmpConfigureMaster in tixImgCmp.o _ImgCmpConfigureMaster in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCreate in tixImgCmp.o _ImgCmpCreate in tixImgCmp.o _ImageProc in tixImgCmp.o _ImgXpmDelete in tixImgXpm.o _ImgXpmDelete in tixImgXpm.o _Tix_DefinePixmap in tixImgXpm.o _Tix_DefinePixmap in tixImgXpm.o _ImgXpmFree in tixImgXpm.o _ImgXpmFree in tixImgXpm.o _ImgXpmGetDataFromString in tixImgXpm.o _ImgXpmGetDataFromString in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmGet in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _ImgXpmCreate in tixImgXpm.o _ImgXpmCreate in tixImgXpm.o _TixpInitPixmapInstance in tixUnixXpm.o _TixpXpmAllocTmpBuffer in tixUnixXpm.o _TixpXpmAllocTmpBuffer in tixUnixXpm.o _TixpXpmFreeTmpBuffer in tixUnixXpm.o _TixpXpmFreeTmpBuffer in tixUnixXpm.o _TixpXpmFreeInstanceData in tixUnixXpm.o "_tclIntStubsPtr", referenced from: _Tix_CreateWidgetCmd in tixWidget.o "_tkIntStubsPtr", referenced from: _XLowerWindow in tixUnixWm.o "_tkIntXlibStubsPtr", referenced from: _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _Tix_GrFormatGrid in tixGrFmt.o _Tix_GrFormatGrid in tixGrFmt.o _Tix_GrFormatGrid in tixGrFmt.o _Tix_GrFormatGrid in tixGrFmt.o _DrawElements in tixHList.o _DrawElements in tixHList.o _DrawElements in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _Tix_HLDrawHeader in tixHLHdr.o _Tix_HLDrawHeader in tixHLHdr.o _WidgetDisplay in tixNBFrame.o _Tix_TextStyleSetTemplate in tixDiText.o _Tix_TextStyleSetTemplate in tixDiText.o _Tix_TextItemFree in tixDiText.o _Tix_TextItemConfigure in tixDiText.o _Tix_WindowItemUnmap in tixDiWin.o _Tix_WindowItemUnmap in tixDiWin.o _Tix_WindowStyleFree in tixDiWin.o _Tix_WindowStyleConfigure in tixDiWin.o _Tix_WindowStyleSetTemplate in tixDiWin.o _Tix_WindowStyleSetTemplate in tixDiWin.o _Tix_WindowStyleSetTemplate in tixDiWin.o _Tix_WindowStyleSetTemplate in tixDiWin.o _Tix_WindowItemFree in tixDiWin.o _Tix_WindowItemFree in tixDiWin.o _Tix_WindowItemDisplay in tixDiWin.o _Tix_WindowItemDisplay in tixDiWin.o _Tix_WindowItemDisplay in tixDiWin.o _Tix_WindowItemDisplay in tixDiWin.o _Tix_WindowItemConfigure in tixDiWin.o _SubWindowLostSlaveProc in tixDiWin.o _UnmapClient in tixForm.o _UnmapClient in tixForm.o _TixFm_AddToMaster in tixForm.o _TixFm_GetFormInfo in tixForm.o _TixFm_FindClientPtrByName in tixForm.o _GetMasterInfo in tixForm.o _TixFm_Check in tixForm.o _TixFm_Slaves in tixForm.o _ArrangeGeometry in tixForm.o _ArrangeGeometry in tixForm.o _ArrangeGeometry in tixForm.o _TixFm_SetClient in tixForm.o _TixFm_SetClient in tixForm.o _TixFm_SetClient in tixForm.o _TixFm_SetClient in tixForm.o _TixFm_Spring in tixForm.o _TixFm_SetGrid in tixForm.o _TixFm_LostSlaveProc in tixForm.o _TixFm_ForgetOneClient in tixForm.o _TixFm_DeleteMaster in tixForm.o _ConfigureAttachment in tixFormMisc.o _ConfigureAttachment in tixFormMisc.o _ConfigureAttachment in tixFormMisc.o _ConfigureAttachment in tixFormMisc.o _TixFm_Configure in tixFormMisc.o _TixFm_Configure in tixFormMisc.o _TixFm_Configure in tixFormMisc.o _TixFm_Configure in tixFormMisc.o _TixFm_Configure in tixFormMisc.o _TixFm_Configure in tixFormMisc.o _WidgetCmdDeletedProc in tixGrid.o _Tix_GrCGet in tixGrid.o _WidgetDestroy in tixGrid.o _WidgetDestroy in tixGrid.o _WidgetConfigure in tixGrid.o _Tix_GrConfig in tixGrid.o _Tix_GrConfig in tixGrid.o _Tix_GridCmd in tixGrid.o _Tix_GrView in tixGrid.o _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _IdleHandler in tixGrid.o _Tix_GrFillCells in tixGrFmt.o _Tix_GrFillCells in tixGrFmt.o _Tix_GrFreeUnusedColors in tixGrFmt.o _Tix_GrFreeUnusedColors in tixGrFmt.o _GetInfo in tixGrFmt.o _Tix_GrSaveColor in tixGrFmt.o _Tix_GrFormatGrid in tixGrFmt.o _Tix_GrFormatGrid in tixGrFmt.o _Tix_GrFormatBorder in tixGrFmt.o _Tix_GrConfigSize in tixGrUtl.o _Tix_GrConfigSize in tixGrUtl.o _Tix_GrConfigSize in tixGrUtl.o _Tix_HLCGet in tixHList.o _WidgetCmdDeletedProc in tixHList.o _DrawElements in tixHList.o _DrawElements in tixHList.o _DrawElements in tixHList.o _WidgetConfigure in tixHList.o _Tix_HLConfig in tixHList.o _Tix_HLConfig in tixHList.o _Tix_HListCmd in tixHList.o _WidgetDestroy in tixHList.o _WidgetDestroy in tixHList.o _Tix_HLXView in tixHList.o _Tix_HLComputeGeometry in tixHList.o _Tix_HLYView in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _WidgetDisplay in tixHList.o _Tix_HLColWidth in tixHLCol.o _Tix_HLItemCGet in tixHLCol.o _Tix_HLItemConfig in tixHLCol.o _Tix_HLItemConfig in tixHLCol.o _Tix_HLIndCGet in tixHLInd.o _Tix_HLIndConfig in tixHLInd.o _Tix_HLIndConfig in tixHLInd.o _Tix_HLCreateHeaders in tixHLHdr.o _Tix_HLFreeHeaders in tixHLHdr.o _Tix_HLDrawHeader in tixHLHdr.o _Tix_HLDrawHeader in tixHLHdr.o _WidgetCmdDeletedProc in tixNBFrame.o _DeleteTab in tixNBFrame.o _DeleteTab in tixNBFrame.o _WidgetDestroy in tixNBFrame.o _WidgetDestroy in tixNBFrame.o _WidgetComputeGeometry in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _WidgetDisplay in tixNBFrame.o _TabConfigure in tixNBFrame.o _WidgetConfigure in tixNBFrame.o _Tix_NoteBookFrameCmd in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCommand in tixNBFrame.o _WidgetCmdDeletedProc in tixTList.o _Tix_TLCGet in tixTList.o _WidgetConfigure in tixTList.o _Tix_TLConfig in tixTList.o _Tix_TLConfig in tixTList.o _Tix_TListCmd in tixTList.o _Tix_TListCmd in tixTList.o _Tix_TListCmd in tixTList.o _Tix_TListCmd in tixTList.o _WidgetDisplay in tixTList.o _WidgetDisplay in tixTList.o _WidgetDisplay in tixTList.o _WidgetDisplay in tixTList.o _WidgetDisplay in tixTList.o _FreeEntry in tixTList.o _WidgetDestroy in tixTList.o _WidgetDestroy in tixTList.o _ImgCmpGet in tixImgCmp.o _FreeLine in tixImgCmp.o _AddNewLine in tixImgCmp.o _FreeItem in tixImgCmp.o _FreeItem in tixImgCmp.o _FreeItem in tixImgCmp.o _FreeItem in tixImgCmp.o _FreeItem in tixImgCmp.o _FreeItem in tixImgCmp.o _FreeItem in tixImgCmp.o _AddNewText in tixImgCmp.o _AddNewSpace in tixImgCmp.o _AddNewImage in tixImgCmp.o _AddNewBitmap in tixImgCmp.o _ImgCmpFreeResources in tixImgCmp.o _ImgCmpFreeResources in tixImgCmp.o _ImgCmpFreeResources in tixImgCmp.o _ImgCmpCmdDeletedProc in tixImgCmp.o _CalculateMasterSize in tixImgCmp.o _ImgCmpDisplay in tixImgCmp.o _ImgCmpDisplay in tixImgCmp.o _ImgCmpConfigureMaster in tixImgCmp.o _ImgCmpConfigureMaster in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgCmpCmd in tixImgCmp.o _ImgXpmDelete in tixImgXpm.o _ImgXpmCmdDeletedProc in tixImgXpm.o _ImgXpmFree in tixImgXpm.o _ImgXpmFree in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmConfigureInstance in tixImgXpm.o _ImgXpmGet in tixImgXpm.o _ImgXpmGet in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmConfigureMaster in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _ImgXpmCmd in tixImgXpm.o _TixpDrawTmpLine in tixUnixDraw.o _TixpStartSubRegionDraw in tixUnixDraw.o _TixpEndSubRegionDraw in tixUnixDraw.o _TixpSubRegDrawImage in tixUnixDraw.o _TixpSubRegDrawImage in tixUnixDraw.o _TixpXpmRealizePixmap in tixUnixXpm.o _TixpXpmRealizePixmap in tixUnixXpm.o _TixpXpmRealizePixmap in tixUnixXpm.o _TixpXpmRealizePixmap in tixUnixXpm.o _TixpXpmRealizePixmap in tixUnixXpm.o _TixpXpmFreeInstanceData in tixUnixXpm.o _TixpXpmFreeInstanceData in tixUnixXpm.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [libTix8.4.3.dylib] Error 1 Thanks -N

    Read the article

  • How ca I return a value from a function

    - by Shadi Al Mahallawy
    I used a function to calculate information about certain instructions I intialized in a map,like this void get_objectcode(char*&token1,const int &y) { map<string,int> operations; operations["ADD"] = 18; operations["AND"] = 40; operations["COMP"] = 28; operations["DIV"] = 24; operations["J"] = 0X3c; operations["JEQ"] =30; operations["JGT"] =34; operations["JLT"] =38; operations["JSUB"] =48; operations["LDA"] =00; operations["LDCH"] =50; operations["LDL"] =55; operations["LDX"] =04; operations["MUL"] =20; operations["OR"] =44; operations["RD"] =0xd8; operations["RSUB"] =0x4c; operations["STA"] =0x0c; operations["STCH"] =54; operations["STL"] =14; operations["STSW"] =0xe8; operations["STX"] =10; operations["SUB"] =0x1c; operations["TD"] =0xe0; operations["TIX"] =0x2c; operations["WD"] =0xdc; if ((operations.find("ADD")->first==token1)||(operations.find("AND")->first==token1)||(operations.find("COMP")->first==token1) ||(operations.find("DIV")->first==token1)||(operations.find("J")->first==token1)||(operations.find("JEQ")->first==token1) ||(operations.find("JGT")->first==token1)||(operations.find("JLT")->first==token1)||(operations.find("JSUB")->first==token1) ||(operations.find("LDA")->first==token1)||(operations.find("LDCH")->first==token1)||(operations.find("LDL")->first==token1) ||(operations.find("LDX")->first==token1)||(operations.find("MUL")->first==token1)||(operations.find("OR")->first==token1) ||(operations.find("RD")->first==token1)||(operations.find("RSUB")->first==token1)||(operations.find("STA")->first==token1)||(operations.find("STCH")->first==token1)||(operations.find("STCH")->first==token1)||(operations.find("STL")->first==token1) ||(operations.find("STSW")->first==token1)||(operations.find("STX")->first==token1)||(operations.find("SUB")->first==token1) ||(operations.find("TD")->first==token1)||(operations.find("TIX")->first==token1)||(operations.find("WD")->first==token1)) { int y=operations.find(token1)->second; //cout<<hex<<y<<endl; } return ; } which if I cout y in the function gives me an answer just fine which is what i need but there is a problem tring to return the value from the function so that I could use it outside the function , it gives a whole different answer, what is the problem

    Read the article

  • How to make the tokenizer detect empty spaces while using strtok()

    - by Shadi Al Mahallawy
    I am designing a c++ program, somewhere in the program i need to detect if there is a blank(empty token) next to the token used know eg. if(token1==start) { token2=strtok(NULL," "); if(token2==NULL) {LCCTR=0;} else {LCCTR=atoi(token2);} so in the previous peice token1 is pointing to start , and i want to check if there is anumber next to the start , so I used token2=strtok(NULL," ") to point to the next token but unfortunattly the strtok function cannot detect empty spaces so it gives me an error at run time"INVALID NULL POINTER" how can i fix it or is there another function to use to detect empty spaces #include <iostream> #include<string> #include<map> #include<iomanip> #include<fstream> #include<ctype.h> using namespace std; const int MAX=300; int LCCTR; int START(char* token1); char* PASS1(char*token1); void tokinizer() { ifstream in; ofstream out; char oneline[MAX]; in.open("infile.txt"); out.open("outfile.txt"); if(in.is_open()) { char *token1; in.getline(oneline,MAX); token1 = strtok(oneline," \t"); START (token1); //cout<<'\t'; while(token1!=NULL) { //PASS1(token1); //cout<<token1<<" "; token1=strtok(NULL," \t"); if(NULL==token1) {//cout<<endl; //cout<<LCCTR<<'\t'; in.getline(oneline,MAX); token1 = strtok(oneline," \t"); } } } in.close(); out.close(); } int START(char* token1) { string start("START"); char*token2; if(token1 != start) {LCCTR=0;} else if(token1==start) { token2=strchr(token1+2,' '); cout<<token2; if(token2==NULL) {LCCTR=0;} else {LCCTR=atoi(token2); if(atoi(token2)>9999||atoi(token2)<0){cout<<"IVALID STARTING ADDRESS"<<endl;exit(1);} } } return LCCTR; } char* PASS1 (char*token1) { map<string,int> operations; map<string,int>symtable; map<string,int>::iterator it; pair<map<string,int>::iterator,bool> ret; char*token3=NULL; char*token2=NULL; string test; string comp(" "); string start("START"); string word("WORD"); string byte("BYTE"); string resb("RESB"); string resw("RESW"); string end("END"); operations["ADD"] = 18; operations["AND"] = 40; operations["COMP"] = 28; operations["DIV"] = 24; operations["J"] = 0X3c; operations["JEQ"] =30; operations["JGT"] =34; operations["JLT"] =38; operations["JSUB"] =48; operations["LDA"] =00; operations["LDCH"] =50; operations["LDL"] =55; operations["LDX"] =04; operations["MUL"] =20; operations["OR"] =44; operations["RD"] =0xd8; operations["RSUB"] =0x4c; operations["STA"] =0x0c; operations["STCH"] =54; operations["STL"] =14; operations["STSW"] =0xe8; operations["STX"] =10; operations["SUB"] =0x1c; operations["TD"] =0xe0; operations["TIX"] =0x2c; operations["WD"] =0xdc; if(operations.find("ADD")->first==token1) { token2=strtok(NULL," "); //test=token2; cout<<token2; //if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} //else{LCCTR=LCCTR+3;} } /*else if(operations.find("AND")->first==token1) { token2=strtok(NULL," "); test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("COMP")->first==token1) { token2=token1+5; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("DIV")->first==token1) { token2=token1+4; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("J")->first==token1) { token2=token1+2; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("JEQ")->first==token1) { token2=token1+5; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("JGT")->first==token1) { token2=strtok(NULL," "); test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("JLT")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("JSUB")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("LDA")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("LDCH")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("LDL")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("LDX")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("MUL")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("OR")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("RD")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("RSUB")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("STA")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("STCH")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("STL")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("STSW")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("STX")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("SUB")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("TD")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("TIX")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} } else if(operations.find("WD")->first==token1) { token2=token1+6; test=token2; if(test.empty()){cout<<"MISSING OPERAND"<<endl;exit(1);} else{LCCTR=LCCTR+3;} }*/ //else if( if(word==token1) {LCCTR=LCCTR+3;} else if(byte==token1) {string test; token2=token1+7; test=token2; if(test[0]=='C') {token3=token1+10; test=token3; if(test.length()>15) {cout<<"ERROR"<<endl; exit(1);} } else if(test[0]=='X') {token3=token1+10; test=token3; if(test.length()>14) {cout<<"ERROR"<<endl; exit(1);} } LCCTR=LCCTR+test.length(); } else if(resb==token1) {token3=token1+5; LCCTR=LCCTR+atoi(token3);} else if(resw==token1) {token3=token1+5; LCCTR=LCCTR+3*atoi(token3);} else if(end==token1) {exit(1);} /*else { test=token1; int last=test.length(); if(token1==start||test[0]=='C'||test[0]=='X'||ispunct(test[last])||isdigit(test[0])||isdigit(test[1])||isdigit(test[2])||isdigit(test[3])){} else { token2=strtok(NULL," "); //test=token2; cout<<token2; if(token2!=NULL) { symtable.insert( pair<string,int>(token1,LCCTR)); for(it=symtable.begin() ;it!=symtable.end() ;++it) {/*cout<<"symbol: "<<it->first<<" LCCTR: "<<it->second<<endl;} } else{} } }*/ return token3; } int main() { tokinizer(); return 0; }

    Read the article

1